CREATE PROCEDURE Sys_Init_tblaccountsuser_sortid () P1: BEGIN '; ; ; ; DECLARE CUR1 CURSOR WITH RETURN TO CLIENT FOR select rk,id from (select rank() over(partition by ouid order by id asc) rk,t.* from tracing.tblaccountsuser t); ; -- Cursor left ope