有高人帮帮忙吧救命的 ID Rownum - 11 01 11 21 32 42 52 63 7变成ID Rownum - 11 01 11 21 32 02 12 23 0怎么做呀??/ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select id,row_number() over(partition by id order by id)from table; select ID,num-1from(select ID,row_number() over(partition by ID order by ID desc) num from table) 怎么进行2个既不满足A又不满足B条件的查询? sql 列转行问题请教 求ORACLE书 如何导出一个oracle数据库的所有用户的Sql脚本 A Database develoter interview test 如何做到2个表的部分字段相同不显示? oracle中select是否有与SQLServer top 10 percent相现的功能? 能在ORACLE的存储过程中创建触发器吗?怎么做? vs.Net2005编辑存储过程 ▲如何解除外键约束(或其他的约束) 怎样写好考勤数据库 数据库
select id,
row_number() over(partition by id order by id)
from table;
select ID,num-1
from
(select ID,row_number() over(partition by ID order by ID desc) num
from table)