38.24 STRING_TO_TABLEファンクション
セパレータで分割された入力をvc_arr2
で返します。
構文
FUNCTION STRING_TO_TABLE (
p_str IN VARCHAR2,
p_sep IN VARCHAR2 DEFAULT ':' )
RETURN apex_application_global.vc_arr2;
パラメータ
表38-26 STRING_TO_TABLEのパラメータ
パラメータ | 説明 |
---|---|
|
入力varchar2。 |
|
セパレータ。正規表現や文字列分割は指定しません。デフォルトは |
例
declare
l_result apex_application_global.vc_arr2;
begin
l_result := apex_string.string_to_table('1:2:3',':');
sys.dbms_output.put_line(apex_string.table_to_string(l_result,'-'));
end;
-> 1-2-3
親トピック: APEX_STRING