the important thing is not to stop questioning

导航

 

2015年10月20日

摘要: sql with as 用法(适用sqlserver,好像oracle也适用)Server 2005中提供了公用表表达式(CTE),使用CTE,可以使SQL语句的可维护性,同时,CTE要比表变量的效率高得多。下面是CTE的语法:[ WITH [ ,n ] ]::= expression_name ... 阅读全文
posted @ 2015-10-20 16:51 qook 阅读(134) 评论(0) 推荐(0) 编辑
 
摘要: updatetable1settable1.column1=(selecttable2.column1fromtable2where关联条件)whereexists(select1fromfromtable2where关联条件); 阅读全文
posted @ 2015-10-20 15:45 qook 阅读(147) 评论(0) 推荐(0) 编辑