DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: Help with oracle query/procedure using null values

Threaded View

  1. #4
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Cool

    Quote Originally Posted by harish31 View Post
    Thanks for the reply. I want to use the above query in a stored procedure which have null values for the parameters as below:

    . . . E t c . . .

    My paramters will sometimes have values and some times null. I can not use IS NULL all the time. Please advise.
    Two ways:
    Code:
     . . . 
    (val7 IS NULL OR Column_7 = val7) and
    ...
    Or:
    Code:
     . . . 
    Column_7 = NVL(val7,Column_7) and
    ...
    Last edited by LKBrwn_DBA; 02-18-2013 at 05:47 PM.
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width