coalesce(name,'')<>''
#返回true 或者 false
select * from table where coalesce(name,'')<>''
本文介绍了一种使用COALESCE函数进行SQL查询的方法,该方法能够有效处理NULL值问题,确保查询结果中name字段不为空。
#返回true 或者 false
select * from table where coalesce(name,'')<>''
5873

被折叠的 条评论
为什么被折叠?