您好,登錄后才能下訂單哦!
DECLARE
TYPE arr1_tt IS TABLE OF INT INDEX BY PLS_INTEGER;
TYPE arr2_tt IS TABLE OF arr1_tt INDEX BY PLS_INTEGER;
arr2_inst arr2_tt;
ROW INT := 1;
col INT := 1;
tmprow INT := 0;
tot INT := 0;
BEGIN
WHILE(ROW<=5) LOOP
col := 1;
tmprow := ROW;
WHILE(col<=ROW) LOOP
tot := tot + 1;
arr2_inst(tmprow)(col) := tot;
tmprow := tmprow-1;
col := col + 1;
END LOOP;
ROW := ROW + 1;
END LOOP;
FOR i IN 1..arr2_inst.count LOOP
FOR j IN 1..arr2_inst(i).count-i+1 LOOP
dbms_output.put_line(arr2_inst(i)(j)||'');
END LOOP;
END LOOP;
END;
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。