摘要:
oracle SQL代码 使用包返回结果集--存储过程查询结果集--创建包create or replace package packselectastype t_cursor is ref cursor;PROCEDURE testprocHYKHYXX( cur_name out t_cursor);end packselect ;;--创建包体create or replace package body packselectasPROCEDURE testprocHYKHYXX( cur_name out t_cursor)is begin open cur_name for sele. 阅读全文
摘要:
Sybase 存储过程的创建和执行--返回值为int的存储过程create proc testReturn@tname varchar(12) ,@tid int outputasbeginset @tid = (select testid from Mytest where testname=@tname)returnend--返回值为varchar的存储过程create proc testReturnT@tid int ,@tname varchar(12) outputas begin set @tname = (select testname from Mytest where tes 阅读全文