字段为空有两种情况
- 字段内容为null
- 字段内容为''(空字符串)
判断字段为空
select * from table where column is null and trim(column) = ''
判断字段不为空
select * from table where trim(column) != ''
trim可以不写,直接写(column)
字段为空有两种情况
判断字段为空
select * from table where column is null and trim(column) = ''
判断字段不为空
select * from table where trim(column) != ''
trim可以不写,直接写(column)