Answer by RolandoMySQLDBA for Running two DELETE statements causes a syntax...
This technique is possible. Here is the correct syntax:DELETE A.*,B.* FROMmember A INNER JOIN subscriptions B USING (type_id)WHERE A.type_id = 1;I have another post from June 26, 2013 on this same...
View ArticleAnswer by Michael - sqlbot for Running two DELETE statements causes a syntax...
You can't* combine multiple queries like this. You need to execute them separately.When you see the error ...the right syntax to use near... that's telling you that MySQL's parser (lexer?) can't come...
View ArticleRunning two DELETE statements causes a syntax error
DELETE `member` FROM `member` WHERE `member`.`type_id` = 1; DELETE `subscriptions` FROM `subscriptions` WHERE `subscriptions`.`type_id` = 1; Table: subscriptions Columns: id int(11) PK AI type_id...
View Article
More Pages to Explore .....