排序取数据
oracle:
salserver:select top 1 * from message m order by m.createTime desc // 从排序后的数据中去除第一条
mysql:select * from message m,attention a where m.fromUserName = a.openid order by m.createTime desc limit 0,1 // 从索引为0开始取1条数据
oracle,sqlserver,mysql区别,布布扣,bubuko.com
原文:http://blog.csdn.net/sprita1/article/details/20732095