21.11 GET_CLOB_OUTPUTファンクション
INITIALIZE_CLOB_OUTPUT
を使用して作成した一時CLOB
を戻します。
構文
function get_clob_output
return clob;
例
この例では、CLOB
出力用にAPEX_JSON
を構成してJSON
を生成し、DBMS_OUTPUT
を使用してCLOB
を出力し、最後にCLOB
を解放します。
BEGIN
apex_json.initialize_clob_output;
apex_json.open_object;
apex_json.write('hello', 'world');
apex_json.close_object;
dbms_output.put_line(apex_json.get_clob_output);
apex_json.free_output;
END;
親トピック: APEX_JSON