--带参存储过程create or replace procedure testdate(v in number) is i number; begin i:=v; insert into test_day select EN_ID, EN_NAME, ASA_CODE, ASA_NAME, AS, AS_YESTERDAY, SA, SA_YESTERDAY, CA, CA_YESTERDAY, i DATEKEEY from testtable where EN_ID not in (sel…
Sybase:循环调用存储过程 一.日期循环 declare @c_count int declare @rq int --获取两个日期之间的天数 ,getdate()) begin ,),),),)) into @rq exec DBA.P_PROESS(@rq) end 二.游标循环 ); ); declare c_zborg dynamic scroll cursor for select a.orgname,a.pk_deptdoc from table1; -- 打开游标 open c…