sql查询 !='' 和 is not null的区别

select * from table where a is not null 会把有内容的和内容为空的都查出来
而select * from table where a != '' 只会把有内容的查出来

原文地址:https://www.cnblogs.com/yubufan/p/4534256.html