?
Solved

Oracle: Passing a parameter to a function

Posted on 2012-04-12
2
Medium Priority
?
329 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 2000 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

Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to recover a database from a user managed backup
Suggested Courses

801 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