User's Manual

Appendix D. PDL Syntax 201
DataQueryPLSQLFunction(v_article_id in integer)
return number
is
v_title varchar(700);
begin
select title into v_title from articles
where article_id = v_article_id;
return v_title;
end;
/
show errors
Example D-2. Usage Reference for SQL