How to return nothing in an Oracle procedure -



How to return nothing in an Oracle procedure -

i oracle novice , started utilize few days ago.

i want convert procedure sql server oracle. essensially want phone call procedure returns nothing... hence no alter application.

create procedure [dbo].[lc_unbooktrade] @exeid varchar(50), select '' go

first, procedure in oracle not , cannot homecoming anything. function returns something. procedure can have out parameter.

second, unless you're using 12.1, procedures in oracle can't implicitly homecoming cursor executing select statement can in sql server. much more mutual in oracle utilize view sort of thing.

third, in oracle, empty string null if have code expects non-null empty string returned, you're going have alter that.

potentially, closest equivalent code

create or replace procedure lc_unbooktrade( p_exeid in varchar2, p_rc out sys_refcursor ) begin open p_rc select null dual; end;

depending on code you're using phone call procedure, though, may not transparent change.

oracle

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -