KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a table and I only display the latest 30 rows by order by ID. I'm trying to delete any rows after the 30 newest rows by using this query below. DELETE FROM table WHERE type = 'test' ORDER BY id DESC LIMIT 30, 60 I keep getting this error below #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 ' 60' at line 1 What am I doing wrong?
Tags (comma-separated)
Save Edits
Cancel