mysql in 语句的问题

有条sql语句 select * from a where a.catid in('1,2,3,4,5,6,7,8,9,0');
就会查询不出来东西,但是如果用
select * from a where a.catid in(1,2,3,4,5,6,7,8,9,0);
就可以查询出来东西
再者 select* from a where a.catid in('1,2'); 也可以

求高手解释

作者: hemuhan   发布时间: 2011-06-01

select * from a where a.catid in('1','2','3','4','5','6','7','8','9','0');
select * from a where a.catid in(1,2,3,4,5,6,7,8,9);


作者: lxq19851204   发布时间: 2011-06-01

select * from a where find_in_set('1,2,3,4,5,6,7,8,9,0',a.catid)>0;
是动态执行语句?详细说明

作者: WWWWA   发布时间: 2011-06-01

是动态执行语句

作者: hemuhan   发布时间: 2011-06-01