Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2011
    Posts
    3

    Question Unanswered: Equivalent of ISNULL() function of SQL Server

    ISNULL ( check_expression , replacement_value )
    In SQL Server, this replaces NULL with the specified replacement value, if the value of the check_expression is NULL

    Even MYSQL has the same function, but it does a different task & even the syntax is different.

    I want to achieve the same task of SQL Server ISNULL() function
    Please help !!!

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Quote Originally Posted by Nagashree View Post
    Even MYSQL has the same function, but it does a different task & even the syntax is different.
    that's because ISNULL is a non-standard SQL function

    you should be using COALESCE instead, in both SQL Server and MySQL

    that's because COALESCE is a standard SQL function

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

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