日期:2014-05-18 浏览次数:20467 次
create sequence seqID minvalue 1 maxvalue 999999999999999999999999999 start with 1 increment by 1 nocache order; create or replace procedure sp_insert(aName int,rst out int) is begin insert into tablename(id,name) values(seqID.nextval,aName); rst:=seqID.currval; end;
我的异常网推荐解决方案:oracle存储过程,http://www.aiyiweb.com/oracle-develop/177537.html