27 lines
621 B
MySQL
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
|