in reply to Re^2: cleaning up dbi code
in thread cleaning up dbi code
You don't need a full inner join. Maybe try:
delete from a where a.col1 in (select distinct col1 from b)
But what I wonder about in your SQL is why you have two references to the same table tbl. Do you really want to delete the whole table?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: cleaning up dbi code
by Anonymous Monk on Nov 26, 2010 at 19:49 UTC | |
by Corion (Patriarch) on Nov 26, 2010 at 19:55 UTC | |
by roboticus (Chancellor) on Nov 26, 2010 at 23:09 UTC |