查询最新添加的一条数据

1、max(rowid)

例子:

select * from table where rowid = (select max(rowid) from table)

2、row_number() over函数

详情见:http://blog.csdn.net/631799/article/details/7419797

           http://jingyan.baidu.com/article/9989c74604a644f648ecfef3.html

3、根据时间字段判断,最接近当前系统时间的

posted @ 2016-09-29 19:06  李清欣  阅读(357)  评论(0编辑  收藏  举报