查询条件:
$sort_id = '11,21,23';查询表:
id sort
1 11,22
2 21,23
3 50,60
4 23,60查询结果:
id sort
1 11,22
2 21,23
4 23,60ID 3 ,没有任何匹配,所以未被列出。请问这样的MYSQL语句应该怎么写?
$sort_id = '11,21,23';查询表:
id sort
1 11,22
2 21,23
3 50,60
4 23,60查询结果:
id sort
1 11,22
2 21,23
4 23,60ID 3 ,没有任何匹配,所以未被列出。请问这样的MYSQL语句应该怎么写?
具体可参考我写的两篇Blog讲解
http://blog.csdn.net/antter/archive/2006/10/20/1342353.aspx一个求方差的例子
http://blog.csdn.net/antter/archive/2006/10/20/1342361.aspx