Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6 | Andrea | 1 | CREATE OR REPLACE Function WS_ISTANZE_APPL_INSERT |
2 | ( |
||
3 | sAPPLICAZIONE_ID IN NUMBER, |
||
4 | sISTANZA_APPL IN VARCHAR2, |
||
5 | sURL_APPL IN VARCHAR2, |
||
6 | sURL_WS IN VARCHAR2 |
||
7 | ) |
||
8 | RETURN NUMBER IS |
||
9 | -- |
||
10 | -- To modify this template, edit file FUNC.TXT in TEMPLATE |
||
11 | -- directory of SQL Navigator |
||
12 | -- |
||
13 | -- Purpose: Briefly explain the functionality of the function |
||
14 | -- |
||
15 | -- MODIFICATION HISTORY |
||
16 | -- Person Date Comments |
||
17 | -- --------- ------ ------------------------------------------- |
||
18 | TEMP_KEY NUMBER; |
||
19 | -- Declare program variables as shown above |
||
20 | BEGIN |
||
21 | select WS_ISTANZE_APPL_SEQ.NEXTVAL into TEMP_KEY from dual; |
||
22 | |||
23 | INSERT INTO WS_ISTANZE_APPL |
||
24 | ( ISTANZA_APPL_ID, APPLICAZIONE_ID , ISTANZA_APPL, URL_APPL, URL_WS) |
||
25 | VALUES |
||
26 | ( TEMP_KEY, sAPPLICAZIONE_ID , sISTANZA_APPL, sURL_APPL,sURL_WS); |
||
27 | RETURN TEMP_KEY ; |
||
28 | --EXCEPTION |
||
29 | -- WHEN exception_name THEN |
||
30 | -- statements ; |
||
31 | END; |
||
32 | / |
||
33 |