
Oracle
紫金战士
思考,沉淀。
展开
-
Oracle 分页查询
select a.* from ( select t.*,rownum rowno from tableName t where rownum <= 20 ) a where a.rowno >= 11;原创 2019-11-03 19:46:09 · 134 阅读 · 0 评论 -
Oracle SQL 每小时取一条数据
Oracle查询,每一个类别每小时取一条数据现有数据中,有很多个类别的数据,每个类别每小时有大概有300多条数据。需求:每个类别中一小时只取一条数据。表名:table类别字段名:type时间字段名:timeselect r.*from (select row_number() over(partition by type,timeh order by type,timeh ) a...原创 2019-10-26 09:42:16 · 1305 阅读 · 0 评论