0
点赞
收藏
分享

微信扫一扫

mysql中的is null和空字符串


相比于oracle,mysql中的is null 和空坑就没那么多,直接写就行。

不为空

and (username is not null and username !='')

注: 不为空中间用的是and。

为空

and (username is null or username !='')

注: 为空中间用的是or。


举报

相关推荐

0 条评论