checking null values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kannan1983
    New Member
    • Aug 2007
    • 10

    checking null values

    In a table i have to check each and every column for null values . if the column has null value i need to display as ' NULL VALUE' in the output , for these iam declaring some local variables
    Iam checking the column for null value using IF ( col_name IS NULL)
    if the column has null value ill assign the variable as null value or else ill assign the value which is there in the column

    another thing we can use NVL2 function to do the same

    my doubt is perfomance wise which will be better to use
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Use the function NVL or NVL2 because these are predefined and definately execute in least time.

    Comment

    Working...