关于游标! select @str = 'Delare Cur_Tmp Cursor for select * from tableA'Exec(@str) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 declare @str varchar(200)set @str='declare myCursor cursor for select * from tableA'exec(@str)open myCursorFetch next From myCursorWhile @@FETCH_STATUS =0begin Fetch next From myCursorendClose myCursorDeallocate myCursor 大家帮帮看下,创建表时,出现如下错误是什么原因。 两个表更新问题 有难度的统计问题,高手进,谢谢。 安装了VS2008,之后sql server 2000注册向导找不到服务器 大虾帮忙!救命! 请各位指点一下,如何改善数据的查询速度? 如何查看去年具体某一天对数据库记录字段的全部修改记录? 存储过程update问题 查找重复的记录 求一查询语句(order by的) 高手请进:Sql Server管理器运行奇慢问题? SQL Server 数据库工具-测试测试!
set @str='declare myCursor cursor for select * from tableA'
exec(@str)open myCursorFetch next From myCursor
While @@FETCH_STATUS =0
begin
Fetch next From myCursor
endClose myCursor
Deallocate myCursor