select top 1 * from [tableName] order by [排序字段] desc -------或set rowcount 1select * from [tableName] order by [排序字段] desc
sqlserver快速取返回结果的方法
上面举例了mssql的方法,参照一下,是否可以改写为mysql的
如有疑问,及时沟通!
先排序再获取第一条