原表

select t1.c1-t2.c1 c1,t1.c2-t2.c2 c2 from
( select rownum a,c1,c2 from tt ) t1,
( select rownum a,c1,c2 from tt ) t2
where t1.a=t2.a+1

 

posted on 2016-10-13 11:18  风吹羽  阅读(837)  评论(0编辑  收藏  举报