MYSQL查询某字段中以逗号分隔的字符串

select * from 表名 where find_in_set(查询字符串, 列名)

eg. select * from table where find_in_set(“12”,column_name)

猜你喜欢

转载自blog.csdn.net/quanaianzj/article/details/82851414
今日推荐