Skip to content
Advertisement

Right syntax to use near ORDER BY when I try to delete some number of rows

When I try to delete some rows from tables (rows got from joined tables) (Ex : if I get 10 records, then need to delete first 2 records) using ORDER BY ASC and LIMIT = 2.

But getting error

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ORDER BY sales_flat_quote.entity_id ASC LIMIT 2’ at line 9

Below is my code:

Advertisement

Answer

Solution :

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement