mysql 取出最后一条

来源:互联网 发布:天津网络广播电视台 编辑:程序博客网 时间:2024/04/29 07:33
如果是oracle数据库 

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

使用SQL语句:select * from 表名 order by 字段名 desc limit 1;   
0 0
原创粉丝点击