14-01-2022, 03:43 PM
y has probado a ejecutar de nuevo los scripts?:
delete from tiquet2 where (serie,id_tiquet) in (select serie,id_tiquet from tiquet);
delete from factura2 where (serie,id_factura) in (select serie,id_factura from factura);
delete from pagoscobros2 where id_pagoscobros in (select id_pagoscobros from pagoscobros);
delete from apcajas2 where id_apcajas in (select id_apcajas from apcajas);
delete from ventadirecta2 where id_venta in (select id_venta from ventadirecta);
delete from ventadir_comg2 where (id_venta,id_linea) in (select id_venta,id_linea from ventadir_comg);
delete from tiquet2 where (serie,id_tiquet) in (select serie,id_tiquet from tiquet);
delete from factura2 where (serie,id_factura) in (select serie,id_factura from factura);
delete from pagoscobros2 where id_pagoscobros in (select id_pagoscobros from pagoscobros);
delete from apcajas2 where id_apcajas in (select id_apcajas from apcajas);
delete from ventadirecta2 where id_venta in (select id_venta from ventadirecta);
delete from ventadir_comg2 where (id_venta,id_linea) in (select id_venta,id_linea from ventadir_comg);