![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I get an error if I execute this: DELETE * FROM invoice JOIN user ON user.id = invoice.FK_user WHERE invoice.id=51 AND user.id=1 "#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM invoice JOIN user ON user.id = invoice.FK_user WHERE invoice.id =51 AND u' at line 1" To test I do this: SELECT * FROM invoice JOIN user ON user.id = invoice.FK_user WHERE invoice.id=51 AND user.id=1 ..and I get the 1 record I want to delete Anybody sees the syntax error in the delete statement? btw - DELETE FROM ... and DELETE * FROM give the same error result. |
|
I use MySQL version: 5.0.8 Thanks, Marc |
#3
| |||
| |||
|
|
I get an error if I execute this: DELETE * FROM invoice JOIN user ON user.id = invoice.FK_user WHERE invoice.id=51 AND user.id=1 "#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM invoice JOIN user ON user.id = invoice.FK_user WHERE invoice.id =51 AND u' at line 1" |
|
To test I do this: SELECT * FROM invoice JOIN user ON user.id = invoice.FK_user WHERE invoice.id=51 AND user.id=1 ..and I get the 1 record I want to delete Anybody sees the syntax error in the delete statement? btw - DELETE FROM ... and DELETE * FROM give the same error result. |
#4
| |||
| |||
|
|
Hi, I get an error if I execute this: DELETE * FROM invoice JOIN user ON user.id = invoice.FK_user WHERE invoice.id=51 AND user.id=1 "#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM invoice JOIN user ON user.id = invoice.FK_user WHERE invoice.id =51 AND u' at line 1" |
|
To test I do this: SELECT * FROM invoice JOIN user ON user.id = invoice.FK_user WHERE invoice.id=51 AND user.id=1 ..and I get the 1 record I want to delete Anybody sees the syntax error in the delete statement? btw - DELETE FROM ... and DELETE * FROM give the same error result. |
#5
| |||
| |||
|
|
DELETE invoice, user FROM invoice JOIN user ON ... |
![]() |
| Thread Tools | |
| Display Modes | |
| |