单表

select a.id from a where type=1 order by id 

foreach 组合成 (20,3,69)形式 

select a.title,a.id from a in(组合形式)

id 铸件索引 type普通索引

 

多表

select a.cid,b,id from a inner join b on a.cid=b.id

foreach 组合成(20,3,69)形式

select * from c where sid in (组合形式)

c 为a 和b表组合

id,sid为唯一索引 cid为普通索引

 

posted on 2014-11-30 12:09  大海航手  阅读(325)  评论(0编辑  收藏  举报