Hey there,
I would like to execute the following query to perform deletes.
Unfortunately it only returns a list of the delete queries without
actually performing them. How can I get the deletes to be executed? I
am running MySQL 4.0.20-standard.
$query = "SELECT concat('DELETE FROM temp WHERE prodid =
\'',prod.ProdID , '\';') AS '' FROM prod LEFT JOIN catalog ON
prod.ProdID = catalog.ProdID WHERE catalog.ProdID IS NULL";
All help really appreciated!
Thanks,
Dom
I would like to execute the following query to perform deletes.
Unfortunately it only returns a list of the delete queries without
actually performing them. How can I get the deletes to be executed? I
am running MySQL 4.0.20-standard.
$query = "SELECT concat('DELETE FROM temp WHERE prodid =
\'',prod.ProdID , '\';') AS '' FROM prod LEFT JOIN catalog ON
prod.ProdID = catalog.ProdID WHERE catalog.ProdID IS NULL";
All help really appreciated!
Thanks,
Dom
Comment