相比于oracle,mysql中的is null 和空坑就没那么多,直接写就行。
不为空
and (username is not null and username !='')
注: 不为空中间用的是and。
为空
and (username is null or username !='')
注: 为空中间用的是or。
mysql中的is null和空字符串
阅读 34
2023-10-31
相比于oracle,mysql中的is null 和空坑就没那么多,直接写就行。
and (username is not null and username !='')
注: 不为空中间用的是and。
and (username is null or username !='')
注: 为空中间用的是or。
相关推荐
精彩评论(0)