sql查询最后一条自增长的记录

阅读更多
mysql> select * from message where id = (select max(id) from message);
+----+------+---------+---------------------+
| id | name | content | time                |
+----+------+---------+---------------------+
|  1 | Joe  | 你好    | 2013-11-13 17:10:05 |
+----+------+---------+---------------------+

 

你可能感兴趣的:(乔乐共享,sql,last,id)