摘要:
sql with as 用法(适用sqlserver,好像oracle也适用)Server 2005中提供了公用表表达式(CTE),使用CTE,可以使SQL语句的可维护性,同时,CTE要比表变量的效率高得多。下面是CTE的语法:[ WITH [ ,n ] ]::= expression_name ... 阅读全文
摘要:
updatetable1settable1.column1=(selecttable2.column1fromtable2where关联条件)whereexists(select1fromfromtable2where关联条件); 阅读全文