摘要: 表结构如下:mysql> select * from test;+----+-------+| id | name |+----+-------+| 1 | test1 || 2 | test2 || 3 | test3 || 4 | test4 || 5 | test5 |+----+-------+执行以下SQL:mysql> select * from test where id in(3,1,5);+----+-------+| id | name |+----+-------+| 1 | test1 || 3 | test3 || 5 | test5 |+----+--- 阅读全文
posted @ 2012-10-26 19:11 上帝爱编程 阅读(18384) 评论(0) 推荐(0)