日期:2014-05-18 浏览次数:20514 次
DECLARE @STR_DetailId TABLE(DetailId INT,Old BIT) /*新老子单编号表*/
DECLARE Employee_Cursor CURSOR FOR SELECT EmployeeID, Title FROM AdventureWorks.HumanResources.Employee; OPEN Employee_Cursor; FETCH NEXT FROM Employee_Cursor; WHILE @@FETCH_STATUS = 0 BEGIN FETCH NEXT FROM Employee_Cursor; END; CLOSE Employee_Cursor; DEALLOCATE Employee_Cursor; GO
------解决方案--------------------
游标!
------解决方案--------------------
游标!