mysql中怎么过滤掉字段带英文逗号的记录。 字段带英文逗号的记录不想查出来。
and (invtype not like '%,%' or invtype is null )and (invname not like '%,%' or invtype is null )
目前通过这个方法解决的。
可以用子查询,先将包含英文逗号的记录ID查询出来,然后再查询ID不等于子查询ID的记录
条件后面跟where 某字段.indexOf(',') < 1 应该可以的