数据库
首页 > 数据库> > SQL中的<>

SQL中的<>

作者:互联网

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

标签:gds,where,t3,SQL,null,type,first
来源: https://www.cnblogs.com/xuhk1819/p/13203156.html