15.15 GETファンクション

これらのファンクションは、列値を取得します。サポートされているデータ型ごとにファンクションが1つあります。

構文

function get_varchar2 (
    p_context     in t_context,
    p_column_idx  in pls_integer ) return varchar2;
    
function get_number (
    p_context    in t_context,
    p_column_idx in pls_integer ) return number;

function get_date (
    p_context    in t_context,
    p_column_idx in pls_integer ) return date;

function get_timestamp (
    p_context    in t_context,
    p_column_idx in pls_integer ) return timestamp;

function get_timestamp_tz (
    p_context    in t_context,
    p_column_idx in pls_integer ) return timestamp with time zone;

function get_timestamp_ltz (
    p_context    in t_context,
    p_column_idx in pls_integer ) return timestamp with local time zone;

function get_clob (
    p_context    in t_context,
    p_column_idx in pls_integer ) return clob;

function get_intervald2s (
    p_context    in t_context,
    p_column_idx in pls_integer ) return interval day to second;

function get_intervaly2m (
    p_context    in t_context,
    p_column_idx in pls_integer ) return interval year to month;

パラメータ

表15-13 GETファンクションのパラメータ

パラメータ 説明

p_context

OPENファンクションのいずれかを使用して取得したコンテキスト・オブジェクト。

p_column_idx

列索引。

戻り値

特定のデータ型としての列値。