![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql
文章平均质量分 77
Moonant
这个作者很懒,什么都没留下…
展开
-
sql中 in 、not in 、exists、not exists 用法和差别http://blog.csdn.net/lihan6415151528/article/details/4466914
exists (sql 返回结果集为真) not exists (sql 不返回结果集为真) 如下: 表A ID NAME 1 A1 2 A2 3 A3 表B ID AID NAME 1 1 B1 2 2 B2 3 2 B3 表A和表B是1对多的关系 A.ID => B.AID SELECT I转载 2013-08-24 10:02:12 · 695 阅读 · 0 评论 -
sql中as的用法和一些经典的sql语句 http://blog.csdn.net/lange253/article/details/4278832
总结一些工作中用到或碰到的SQL语句,希望能与大家分享,同时也希望大家能提供更多的精妙SQL语句..... 1、delete table1 from (select * from table2) as t2 where table1.id=t2.id 2、truncate table table1 (不在事务日志中做记录,比delete table快,但不能激活触发器) 3、update t转载 2013-08-24 10:03:40 · 987 阅读 · 0 评论