Jerry Swanson wrote:
I can delete data for one table with no problem:
delete from table;
I need to delete data for more than one table.
I tried to run this query:
delete from account, survey;
//But the query crashes.
Any ideas how to delete data for more than one query.
TH
multi-table delete s
if your schema can be set up to use pk/fk constraints, you can add an on
delete cascade statement.
if not, then its maybe safer to delete table by table anyway.
Jerry Swanson wrote:
I can delete data for one table with no problem:
delete from table;
I need to delete data for more than one table.
I can delete data for one table with no problem:
delete from table;
I need to delete data for more than one table.
I tried to run this query:
delete from account, survey;
//But the query crashes.
Any ideas how to delete data for more than one query.
TH
--
MySQL General Mailing List
For list