Hello,
Without the use of Subselects, there doesn't appear to be a nice way of deleting rows from table 'A' where the key doesn't match the key in table 'B'.
I saw a post from last year that described a way to do this by copying selecting into a temporary table, dropping the original table, and then renaming the temp table.
Is there a better way. It seems to me that a site with a lot of traffic may get errors if a query was made to the table after it was dropped but before the temp table was renamed.
Finally, are Subselects expected in future versions of MySQL?
Thanks,
-David
Without the use of Subselects, there doesn't appear to be a nice way of deleting rows from table 'A' where the key doesn't match the key in table 'B'.
I saw a post from last year that described a way to do this by copying selecting into a temporary table, dropping the original table, and then renaming the temp table.
Is there a better way. It seems to me that a site with a lot of traffic may get errors if a query was made to the table after it was dropped but before the temp table was renamed.
Finally, are Subselects expected in future versions of MySQL?
Thanks,
-David