Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
CREATE OR REPLACE Function WS_FILTRI_INSERT
2
(
3
    sDESCRIZIONE        IN VARCHAR2,
4
    sVALORE             IN VARCHAR2,
5
    sFLG_TIPO           IN VARCHAR2)
6
RETURN  NUMBER IS
7
TEMP_KEY                 NUMBER;
8
-- Declare program variables as shown above
9
BEGIN
10
--  TEMP_KEY:=WS_GRUPPI_FUNZIONE_SEQ.nextval;
11
    select WS_FILTRI_SEQ.NEXTVAL into TEMP_KEY from dual;
12
 
13
    INSERT INTO WS_FILTRI
14
        ( COD_FILTRO, DESCRIZIONE, VALORE, FLG_TIPO)
15
    VALUES
16
        ( TEMP_KEY,sDESCRIZIONE,sVALORE, sFLG_TIPO );
17
    RETURN TEMP_KEY ;
18
-- EXCEPTION
19
-- WHEN exception_name THEN
20
-- statements ;
21
END;
22
/
23