怎么判断SQL数据库里某一列是否包含某个值

2025-02-25 21:30:16
推荐回答(3个)
回答1:

select * from 表 where 列名 like “%某值%”;

回答2:

select * from 表名 where 列名 like '%某个值%';

回答3:

select * from table1 where charindex('aa',column)>0 and charindex('bb',column)>0 and charindex('dd',column)>0