字符串转成 数组, 可以随机访问
- 核心思想:
select Usercol BULK COLLECT INTO Userarr from UserTable
- 关键字: BULK COLLECT INTO
- 例子
CREATE OR REPLACE PROCEDURE P_WindsTest(psViceUSNList IN VARCHAR2) AS
TYPE Type_Varchar30_Array IS VARRAY(1000) of varchar(30);
--TYPE Type_Varchar30_Array IS TABLE OF SFCUSNREPAIR.USN%TYPE;
arrUSN Type_Varchar30_Array;
BEGIN
dbms_output.put_line('BEGIN-------------'