02-02-2017, 06:55 PM
Okay, te paso el script:
update complementog set imagen = null where id_tipo_comg = "0117";
delete from complementogimg where id_complementog in (select id_complementog where id_tipo_comg = "0117");
delete from productoimg where id in (select id_complementog where id_tipo_comg = "0117");
delete from productoimgs where id_complementog in (select id_complementog where id_tipo_comg = "0117");
Ya me dices.
update complementog set imagen = null where id_tipo_comg = "0117";
delete from complementogimg where id_complementog in (select id_complementog where id_tipo_comg = "0117");
delete from productoimg where id in (select id_complementog where id_tipo_comg = "0117");
delete from productoimgs where id_complementog in (select id_complementog where id_tipo_comg = "0117");
Ya me dices.