troubleshooting Question

procedures with optional variables

Avatar of NiceMan331
NiceMan331 asked on
Oracle Database
2 Comments1 Solution292 ViewsLast Modified:
create or replace PROCEDURE Get_ent_copy (TC in number,us in VARCHAR2) IS
  
    Cursor c_ent IS
 select * From master_gen_ledger
 Where  (doc_date >= st_month and doc_date <= en_month)
    and tr_code  =tc
    and user=us;

for me , us , is optional , mean
if us , then the cursor syntax will be as above
if us = null , then the syntax will be

    Cursor c_ent IS
 select * From master_gen_ledger
 Where  (doc_date >= st_month and doc_date <= en_month)
    and tr_code  =tc;
  

how could i identify the cursor in that procedure ?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros