摘要: 如A,B两个表, 当只显示一个表的数据如A,关系条件只一个如ID时,使用IN更快: select * from A where id in (select id from B) 当只显示一个表的数据如A,关系条件不只一个如ID,col1时,使用IN就不方便了,可以使用EXISTS: select * from A where exists (select 1 f... 阅读全文
posted @ 2009-01-22 14:54 使名扬 阅读(301) 评论(0) 推荐(0) 编辑