ALTER TABLE vn2008.account_detail DROP FOREIGN KEY fk_account_detail_account_id_proveedores_account; ALTER TABLE vn2008.account_detail ADD CONSTRAINT fk_account_detail_account_id_proveedores_account FOREIGN KEY (Id_Proveedores_account) REFERENCES vn.supplierAccount(id) ON DELETE RESTRICT ON UPDATE CASCADE;