sql - Unable to delete row from table -
i have 2 database main
, main_2
, 2 tables table1
in main
database , table2
in main_2
database.
i want delete rows table2
not in table1
, using following query:
delete main_2.dcl.table2 slno not in (select slno main.dcl.table1)
i getting
0 row(s) affected
but rows present in table2
, checked manually.
Comments
Post a Comment