mysql判断不为null

悠悠 2021-09-23 11:16 523阅读 0赞

null和空字符串是有区别的

不为null的写法:

  1. where a.is\_view is not null

不为空的写法

  1. where a.reply <> ''

注:

https://www.cnblogs.com/fnlingnzb-learner/p/6519731.html

http://www.splaybow.com/post/mysql-sql-where-is-not-null.html

发表评论

表情:
评论列表 (有 0 条评论,523人围观)

还没有评论,来说两句吧...

相关阅读