oracle - Type table null value check -
i have type of following in plsql block
type table_type table of varchar2(200); v_tab_1 table_type; values initialized
if (prod_amnt > inv_amnt) v_tab_1 := table_type(prod_amnt, 'curr'); ...... sometimes above condition not true , there null values in v_tab_1
what best approach check values exist in v_tab_1?
i have tried
if not(v_tab_1.exists(v_tab_1.first)) however above resulted in no_data_found exception
how deal this?
force single error value table type? , check value.
if (prod_amnt > inv_amnt) v_tab_1 := table_type(prod_amnt, 'curr'); else v_tab_1 := table_type(0, 'err'); end if;
Comments
Post a Comment