摘要: 1. 判断a表中有而b表中没有的记录 select a.* from tbl1 a left join tbl2 b on a.key = b.key where b.key is null 虽然使用in也可以实现,但是这种方法的效率更高一些 2. 新建一个与某个表相同结构的表 select * into b from a where 11 3.between的用法,bet... 阅读全文
posted @ 2007-03-27 21:44 玉开 阅读(1667) 评论(2) 推荐(0) 编辑