Link to home
Start Free TrialLog in
Avatar of Frank Danny
Frank DannyFlag for United States of America

asked on

Can anyone please tell me what does below Stored Procedure does?

I am a newbie oracle PL/SQL stored procedure.Can anyone please tell me why put "g_detail_select||" in a query place and What is  ||?I do understand after  for I should see a query statement but why "g_detail_select||"



procedure get_activity_details (
    in_twp_user_id                    in twp_user.id%type
    ,in_activity_id                in activity.id%type
    ,out_retcode                       out number
     ,tmp_rs                            in out rs_cursor) is

begin
    out_retcode := 0;
    open tmp_rs for g_detail_select||' where a.id='||in_activity_id;
end;

Open in new window

SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Frank Danny

ASKER

Thank  you @slightwv....I  found the g_detail_select  variable below can you tell me please  why putting  datatype here i.e varchar2(2000).User generated image
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you@slightwv