sql查询最后一条自增长的记录
程序员文章站
2022-07-08 15:46:23
...
mysql> select * from message where id = (select max(id) from message); +----+------+---------+---------------------+ | id | name | content | time | +----+------+---------+---------------------+ | 1 | Joe | 你好 | 2013-11-13 17:10:05 | +----+------+---------+---------------------+