随笔分类 - SqlServer
摘要:-- -- Author: -- Create date: -- Description: <游标模板> -- --定义变量 DECLARE @databaseName VARCHAR(100) --定义游标 DECLARE @itemCur CURSOR --设置游标从某个结果集中开始移动读取记录
阅读全文
摘要:示例 sqlserver: update a set a.name=b.name,a.value=b.value from table1 a,table2 b where b.id='id2' and a.id=b.id Oracle: update table1 a set name=(selec
阅读全文

浙公网安备 33010602011771号