当前位置:Gxlcms > 数据库问题 > 使用SQL 查询 第一条数据

使用SQL 查询 第一条数据

时间:2021-07-01 10:21:17 帮助过:2人阅读

select * from (select t.*, row_number() OVER(PARTITION BY t.RTID ORDER BY t.createdate desc ) as row_flg from t_sp_processfile t) temp
where temp.row_flg = ‘1‘

 

使用SQL 查询 第一条数据

标签:

人气教程排行