Solved

Oracle: Passing a parameter to a function

Posted on 2012-04-12
2
326 Views
Last Modified: 2012-06-13
Experts,

I have a function that is written poorly.  I have hardcode individual names for each insert query.  I would like to know how to pass a parameter to my function.

attached is the function
Code.txt
0
Comment
Question by:Maliki Hassani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 37838039
Just add them to the function:
FUNCTION              "SF_NOC_OPERATOR_REPORTING" (d_BEGINDATE_IN DATE, d_ENDDATE_IN DATE, v_REPORTPERIOD_IN VARCHAR2, SOME_NEW_PARAMETER in VARCHAR2)

Then replace the hardcoded variables with SOME_NEW_PARMAETER.
0
 

Author Comment

by:Maliki Hassani
ID: 37838047
Oh okay!  Let me give that a try...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question