sql 不等于符号

sql中的等于和不等于, ‘=’ ,’!=’,’<>’,‘is null’
<> :不等于
例子,select * from bl_ip_dt where amount <> 800,这条语句查不出amount等于null 的记录,
select * from bl_ip_dt where amount <> 800 or amount is null 才是可以的

猜你喜欢

转载自blog.csdn.net/qq_34702563/article/details/86536907