D
D
Dmitry2017-10-09 00:49:18
MySQL
Dmitry, 2017-10-09 00:49:18

Strange work of sql query?

I don't understand what's wrong.
Have a request

DELETE news, images FROM news INNER JOIN images USING (id_news) WHERE id_news='112'

inserted into the procedural PHP code, it works and deletes records, in OOP I copy - it does not work. Okay, let's say I made a mistake somewhere in the code.... BUT, it doesn't work directly in the phpmyadmin console either!!!!
gives:
1. unexpected keyword. (about INNER JOIN)
2. unrecognized statement type. (about INNER JOIN)
Help, please, unravel this riddle.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question