sql中<>为不等于,例如
where t3.first_gds_type<>'0'
注意:字段为null的数据也当做满足不等于的条件,所以要保留null数据 ,需要加上
or t3.first_gds_type is null,即:
where t3.first_gds_type<>'0' or t3.first_gds_type is null
sql中<>为不等于,例如
where t3.first_gds_type<>'0'
注意:字段为null的数据也当做满足不等于的条件,所以要保留null数据 ,需要加上
or t3.first_gds_type is null,即:
where t3.first_gds_type<>'0' or t3.first_gds_type is null
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。