What's wrong with my syntax here?
DELETE * FROM new_gallery WHERE gallery = "webcam"
new_gallery
gallery
Try this -
DELETE * FROM new_gallery WHERE gallery = 'webcam'
nope
DELETE FROM new_gallery WHERE gallery = 'webcam'
You should read the sections of the mysql docs about query syntax.
Hope this helps 😉
I've just tried every combination of single quotes and double quotes, and the syntax you gave me, and still keep getting a syntax error 🙁
... and have just been through the SQL documentation - which doesn't help at all... stumped!
I was being a bit thick. It should be -
Removed the asterisk, works like a charm! Thanks a lot!
Good. It's because you can't specify columns in a DELETE statement, and '*' is the specifier for all columns.