First Commit - Source Code from Reply
This commit is contained in:
18
dbcmnpsrc/FE/mnpapp/script/sql/update_gestione_fifo.sql
Normal file
18
dbcmnpsrc/FE/mnpapp/script/sql/update_gestione_fifo.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
set serveroutput on
|
||||
declare
|
||||
modalita varchar2(2):='&1';
|
||||
operatore varchar2(2):='&2';
|
||||
|
||||
begin
|
||||
DBMS_OUTPUT.PUT_LINE('modalita ' || modalita);
|
||||
DBMS_OUTPUT.PUT_LINE('operatore ' || operatore);
|
||||
if (operatore<>'-1') then
|
||||
DBMS_OUTPUT.PUT_LINE('updating operator ' || operatore);
|
||||
update MNP_EVASIONE SET FIFO_DISATTIVO = modalita where COD_OLO = operatore;
|
||||
else
|
||||
DBMS_OUTPUT.PUT_LINE('updating all operators');
|
||||
update MNP_EVASIONE SET FIFO_DISATTIVO = modalita;
|
||||
end if;
|
||||
end;
|
||||
/
|
||||
exit;
|
||||
Reference in New Issue
Block a user