Files
gateway-mnp-dbc/dbcmnpsrc/FE/mnpapp/script/dbUpDate/kitDicembre05/RU_171.sql
2024-05-13 12:54:14 +02:00

27 lines
621 B
MySQL

spool ru_171.log
select id_richiesta,msisdn
from mnp_gestione_richiesta_rec
where stato=11 and codice_operatore_donating='TIMT' and id_richiesta in (
'XXX',
'XXX'
)
/
INSERT INTO mnp_storico_richiesta_rec (id_prog, id_richiesta, tipo_file, stato_da, stato_a, nome_file,i_o)
select SEQ_REC_STORICO_RICH.NEXTVAL,id_richiesta,'22',11,17,'BONIFICA',0
from mnp_gestione_richiesta_rec
where stato=11 and codice_operatore_donating='TIMT' and id_richiesta in (
'XXX',
'XXX'
)
/
update mnp_gestione_richiesta_rec
set stato=17
where stato=11 and codice_operatore_donating='TIMT' and id_richiesta in (
'XXX',
'XXX'
)
/
spool off