2000游标使用方法
来源:互联网 发布:淘宝网洗照片 编辑:程序博客网 时间:2024/05/22 13:15
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
游标使用方法:
usedb1
declaremy_cursorcursorscrolldynamic/*scroll表示可随意移动游标指针(否则只能向前),dynamic表示可以读写游标(否则游标只读)*/
for
select姓名from个人资料
openmy_cursor
declare@namesysname
fetchnextfrommy_cursorinto@name
while(@@fetch_status=0)
begin
print'姓名:'+@name
fetchnextfrommy_cursorinto@name
end
fetchfirstfrommy_cursorinto@name
print@name
/*update个人资料set姓名='zzg'wherecurrentofmy_cursor*/
/*deletefrom个人资料wherecurrentofmy_cursor*/
closemy_cursor
deallocatemy_cursor
正文
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
游标使用方法:
usedb1
declaremy_cursorcursorscrolldynamic/*scroll表示可随意移动游标指针(否则只能向前),dynamic表示可以读写游标(否则游标只读)*/
for
select姓名from个人资料
openmy_cursor
declare@namesysname
fetchnextfrommy_cursorinto@name
while(@@fetch_status=0)
begin
print'姓名:'+@name
fetchnextfrommy_cursorinto@name
end
fetchfirstfrommy_cursorinto@name
print@name
/*update个人资料set姓名='zzg'wherecurrentofmy_cursor*/
/*deletefrom个人资料wherecurrentofmy_cursor*/
closemy_cursor
deallocatemy_cursor
正文
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 2000游标使用方法
- SQL Server 2000游标使用方法
- 游标使用方法
- 游标使用方法
- SQL Server 2000游标使用方法[转]
- SQL Server 游标使用方法
- Sql(事物+游标)使用方法
- 游标的使用方法
- Sql(事物+游标)使用方法
- 游标的使用方法
- sybase游标使用方法
- oracle 游标的使用方法
- 游标的使用方法
- SQL游标原理和使用方法
- SQL游标原理和使用方法
- SQL游标原理和使用方法
- SQL游标原理和使用方法
- SQL游标原理和使用方法
- 每个Worksheet最多只能有65636条记录
- 与datafile相关的表和视图
- 南非前总统曼德拉关于“ubuntu”的解释以及ubuntu的相关精神
- sql日记(相关子查询,动态交叉表篇)
- 在SQL中使用convert函数进行日期的查询
- 2000游标使用方法
- rand()函数产生的随机数为什么是伪随机数?
- 计算指定年月的最后一天的自定义函数
- 的跨平台
- CrystalReports和sql-server共同进行报表的开发--存储过程-实践
- SQL中的两个值得注意的特殊符号
- 关于字符集的测试报告
- X$表
- 如何查找某个对象的定义(V$_X$_DBA)