Search This Blog

Thursday, July 20, 2017

Create Validation

Code Editor PL/SQL Function Body Returning Error Test:

declare
v_test varchar2(50);
begin
select last_name into v_test from employees where last_name= :P4_LAST_NAME ;
if
v_test IS  NULL then
return null ;
else
return 'This name is not available' ;
end if;
exception
when others then
return null ;
end ;

No comments:

Post a Comment

Search String Inside Oracle Database Objects SQL

SELECT owner, name, type, line, text  FROM dba_source WHERE instr(UPPER(text), UPPER('string')) > 0;