Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete Top 10 record from table

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

like image 243
N J Avatar asked Oct 14 '25 16:10

N J


1 Answers

Just execute this one-line command :

DELETE FROM table LIMIT 10
like image 200
adrCoder Avatar answered Oct 17 '25 07:10

adrCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!