2011年4月20日
摘要: 用not exists 代替not inselect * from tsp_product p where not exists(select 'X' from tsp_orderitem i where p.id=i.product_id)select * from tsp_product p where id not in(select product_id from tsp_orderitem i where p.id=i.product_id)用exists 代替inselect * from tsp_product p where p.id in(select pro 阅读全文
posted @ 2011-04-20 23:06 Ss_Andy 阅读(468) 评论(0) 推荐(0) 编辑