dbTalk Databases Forums  

Passsing parameters between procedures

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Passsing parameters between procedures in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
christophercash@hotmail.com
 
Posts: n/a

Default Passsing parameters between procedures - 12-20-2007 , 08:30 AM






Hi,

I currently have a package and contained within it I have 2
procedures.

The first procedure has a parameter (SEQ_ID) passed into it from a
sequence (sequence_name.NEXTVAL)
which works fine. What I need to do is to pass that parameter into
the other procedure as a variable which then get inserted into a table
and used in calculations for procedure 2.

Could someone please advise as to how I pass that parameter into the
second procedure so that the variable can be initialised to the value.

Any advice would be great thanks.

Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: Passsing parameters between procedures - 12-20-2007 , 08:47 AM






christophercash (AT) hotmail (DOT) com wrote:
Quote:
Hi,

I currently have a package and contained within it I have 2
procedures.

The first procedure has a parameter (SEQ_ID) passed into it from a
sequence (sequence_name.NEXTVAL)
which works fine. What I need to do is to pass that parameter into
the other procedure as a variable which then get inserted into a table
and used in calculations for procedure 2.

Could someone please advise as to how I pass that parameter into the
second procedure so that the variable can be initialised to the value.

Any advice would be great thanks.
Is the second procedure called by the first? Could it be?
Is there an Oracle version number involved here?
Can you use CURRVAL?
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #3  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Passsing parameters between procedures - 12-20-2007 , 09:44 AM



On Dec 20, 8:47 am, DA Morgan <damor... (AT) psoug (DOT) org> wrote:
Quote:
christopherc... (AT) hotmail (DOT) com wrote:
Hi,

I currently have a package and contained within it I have 2
procedures.

The first procedure has a parameter (SEQ_ID) passed into it from a
sequence (sequence_name.NEXTVAL)
which works fine. What I need to do is to pass that parameter into
the other procedure as a variable which then get inserted into a table
and used in calculations for procedure 2.

Could someone please advise as to how I pass that parameter into the
second procedure so that the variable can be initialised to the value.

Any advice would be great thanks.

Is the second procedure called by the first? Could it be?
Is there an Oracle version number involved here?
Can you use CURRVAL?
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damor...@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Groupwww.psoug.org- Hide quoted text -

- Show quoted text -
Can you post the code for these procedures?


David Fitzjarrell


Reply With Quote
  #4  
Old   
Galen Boyer
 
Posts: n/a

Default Re: Passsing parameters between procedures - 12-22-2007 , 03:11 PM



On Thu, 20 Dec 2007, christophercash (AT) hotmail (DOT) com wrote:
Quote:
Hi,

I currently have a package and contained within it I have 2
procedures.

The first procedure has a parameter (SEQ_ID) passed into it from a
sequence (sequence_name.NEXTVAL)
which works fine. What I need to do is to pass that parameter into
the other procedure as a variable which then get inserted into a table
and used in calculations for procedure 2.

Could someone please advise as to how I pass that parameter into the
second procedure so that the variable can be initialised to the value.

Any advice would be great thanks.
I'm confused. One procedure accepts a parameter and works fine. But,
you have a second procedure that needs to accept a parameter and you
aren't sure of the syntax? How come you can't follow the syntax of the
first procedure?

--
Galen Boyer


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.