希望能帮我一下,我是菜鸟
回复讨论(解决方案) select * from `t_ms_article` where `tid` like ‘%2%’;
select * from `t_ms_article` where `tid` like ‘%2%’;
不行的,这样的话会把12、20这样的标签也给查出来的
select * from `t_ms_article` where find_in_set('2', `tid`)
select * from `t_ms_article` where concat(',',`tid`,',') like ‘%,2,%’;
select * from `t_ms_article` where find_in_set('2', `tid`)
多谢,一下就解决了,大神请收下我的膝盖!
