日期:2014-05-16 浏览次数:20454 次
我是刚学动态语句的!具体那个游标怎么写??
declare @ln varchar(50) declare ap scroll cursor for select LastName from [表名] open ap fetch first from ap into @ln while(@@fetch_status<>-1) begin [处理过程..] fetch next from ap into @ln end close ap deallocate ap