我在写sql语句的时候
使用where true 是错误的,使用where 1=1 就没有报错。
求解
instr(字段名,参数);//含有某个 参数
select * from t_goods_type where INSTR(tid,2); #包含,含有
!= //不等于
select * from t_goods_type where tid !=1
is not null 不是空的
select * from t_goods_type where tname is NOT NULL
not instr(字段名,参数);//不含有
select * FROM t_goods_type where NOT INSTR(tid,1)