如果是oracle数据库
使用SQL语句:select * from 表名 where rownum<2 order by 字段名 desc;
如果是mysql数据库
使用SQL语句:select * from 表名 order by 字段名 desc limit 1;
使用SQL语句:select * from 表名 where rownum<2 order by 字段名 desc;
如果是mysql数据库
使用SQL语句:select * from 表名 order by 字段名 desc limit 1;