Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

oracle nullif

VasteMonde answered on May 25, 2023 Popularity 6/10 Helpfulness 5/10

Contents


More Related Answers

  • oracle else if
  • nullif mssql
  • if not null pl sql oracle
  • how to put is null in where in clause
  • insert null sql oracle

  • oracle nullif

    1

    -- if 1rst arg = 2nd arg then returns null

    SELECT nullif(10, 10) FROM DUAL; -- returns null as 10 = 10

    -- example: divides by 1 if value is null

    SELECT 100 / nvl(nullif(0 /* value to test */, 0) ,1) FROM DUAL;

    Popularity 6/10 Helpfulness 5/10 Language whatever
    Source: Grepper
    Tags: nullif oracle sql
    Link to this answer
    Share Copy Link
    Contributed on May 25 2023
    VasteMonde
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.