How to SELECT the last 10 rows of an SQL table which has no ID field?

后端 未结 13 1417
灰色年华
灰色年华 2020-12-15 17:38

I have an MySQL table with 25000 rows.

This is an imported CSV file so I want to look at the last ten rows to make sure it imported everything.

However, sinc

13条回答
  •  隐瞒了意图╮
    2020-12-15 18:08

    you can with code select 10 row from end of table. select * from (SELECT * FROM table1 order by id desc LIMIT 10) as table2 order by id"

提交回复
热议问题