update mnp_gestione_richiesta_cess t set t.stato = 91 where t.stato = 1 and t.da_processare in (0,9); update mnp_gestione_richiesta_cess t set t.stato = 96 where t.stato = 6; commit;