@dcb
The output of the debug ist:
insert into prova (data_ora, id_puntoMisura, id_obis, valore) values ('10.07.2008 10:45:00', (select id_puntoMisura from puntomisura where puntoMisura='CH10019012345-K-LUCT-LUCT-00AECA1'), (select id_obis from obis where obis='1-1:1.29.0*255'), 611);
Seems to...