3

I am newbie to database I want to delete top 10 records form table without any condition on column.

2
  • Why do you want to do that? LIMIT and ORDER BY is my tip.
    – jarlh
    Commented Mar 3, 2015 at 9:42
  • 4
    Define "Top 10" if there is no "condition on column" please! Commented Mar 3, 2015 at 9:44

3 Answers 3

10

Just execute this one-line command :

DELETE FROM table LIMIT 10
1

try this

 Delete from table_name limit 0,10;
1

Use below query to delete Top ten records from Mysql,

DELETE FROM table_name limit 10;

It deletes top 10 records from table. You can Also modify number to change number of records.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.