很急——在SYBASE中怎么在存储过程中定义游标呢?

z816hot293 2004-01-15 11:20:46
比如在ORACLE中这样写:
CREATE PROCEDURE cp_sm_get_msg_content
o_Cursor IN OUT pkg1000.CurTyp,
i_SerialID VARCHAR(20)
o_Cursor 为自定义的游标,这个在SYBASE中应该怎么做呢?
谢谢!!!

...全文
147 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hkzhou 2004-01-17
  • 打赏
  • 举报
回复
在sybase中好象还没有 用游标名做存储过程参数的吧
____________________
ahuanghp 2004-01-15
  • 打赏
  • 举报
回复
declare cursor_name cursor
for select column_name from table_name
for update/delete column_name_list(显示定义为更新或删除,建议这样定义)
open cursor_name
fetch cursor_name

close cursor_name
deallocate cursor cursor_name(释放游标)
wanyong1980 2004-01-15
  • 打赏
  • 举报
回复
declare cursor_name cursor
for select column_name from table_name
for update/delete column_name_list(显示定义为更新或删除,建议这样定义)
open cursor_name
fetch cursor_name

close cursor_name
deallocate cursor cursor_name(释放游标)
brook_huang 2004-01-15
  • 打赏
  • 举报
回复
declare cursor_name cursor for select_statement
open cursor_name
fetch cursor_name
......
close cursor_name
deallocate cursor cursor_name
z816hot293 2004-01-15
  • 打赏
  • 举报
回复
没有人知道吗?

2,596

社区成员

发帖
与我相关
我的任务
社区描述
Sybase相关技术讨论区
社区管理员
  • Sybase社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧