SQL 怎么判断一列(很多可以为空的字段)值中有空格或者为NUll
在sql中
空值有NULL 和''的形式
当是NULL的时候用 IS NULL判断
当是''的时候用 =''判断
比如
select * from table where enddate IS NULL;
select * from table where str='';追问
空值有NULL 和''的形式
当是NULL的时候用 IS NULL判断
当是''的时候用 =''判断
比如
select * from table where enddate IS NULL;
select * from table where str='';追问
一行有很多字段,怎么判断某一个字段为空值呢
温馨提示:答案为网友推荐,仅供参考