Oracle求时序数据最新值

这篇文章是参考了digoal的一篇文章 【postgresql递归SQL的几个应用】而写的oracle版本

文章地址:

https://github.com/digoal/blog/blob/master/201705/20170519_01.md?spm=a2c4e.11153940.blogcont590329.25.4a5c7d33R6EgqG&file=20170519_01.md

创建测试表

create table sort_test(  
  id serial8 primary key,  -- 主键  
  c2 int,  -- 传感器ID  
  c3 int  -- 传感器值  
); 
-- 插入数据
begin
for x in 1..1000000 loop
insert into

 -- 待续

猜你喜欢

转载自www.cnblogs.com/pger/p/9292670.html