为什么都在代码中都推荐使用<>啊
目前没看出区别在哪里,如果需要加入为空的情况都需要写or
select * from student where clctday <> '2021'
select * from student where clctday != '2021'
select * from student where clctday <> '2021' or clctday is null
select * from student where clctday != '2021' or clctday is null
没区别,两种都符合语法,推荐什么的你也可以不用管,选你自己喜欢的就好。
有些人就是精神洁癖,C语言里用!=那么他在用C语言拼接sql的时候就一定要换一个符号。
sql在字符串里面,傻子能弄错了
对, 没有区别