Thanks for the question, Chuck.
Asked: November 27, 2017 - 6:41 pm UTC
Last updated: December 06, 2017 - 1:08 pm UTC
Version: 12c
Viewed 1000+ times
function get_info(ar_key number) return varchar2 as v_return varchar2(256); begin select "info" into v_return from "table"@foreignsqldb where "key" = ar_key; return v_return; exception when no data found return ''; end;
function get_info(ar_key number) return varchar2 as pragma autonomous_transaction; v_return varchar2(256); begin select "info" into v_return from "table"@foreignsqldb where "key" = ar_key; rollback; return v_return; exception when no data found rollback; return ''; end;
Chuck Jolley, December 01, 2017 - 1:49 pm UTC
Need more information on Administration? Check out the Administrators guide for the Oracle Database