C# Oracle Stored Procedure Parameter Order

后端 未结 3 1585
别跟我提以往
别跟我提以往 2021-01-11 10:15

With this

PROCEDURE \"ADD_BOOKMARK_GROUP\" (
  \"NAME\" IN VARCHAR2, 
  \"BOOKMARK_GROUP_ID\" IN NUMBER, 
  \"STAFF_ID\" IN VARCHAR2,
  \"MAX_NO\" IN INT,
          


        
3条回答
  •  -上瘾入骨i
    2021-01-11 10:44

    Not an answer to the question but you can use 'insert ... returning ... into ' in stead of select bgt_sequence.currval from dual, for example:

    begin
      insert into test (id)
      values(test_seq.nextval)
      returning id into p_id;
    end;
    

    See http://www.adp-gmbh.ch/ora/sql/insert_into_x_returning_y.html

提交回复
热议问题