About 544,000 results
Open links in new tab
  1. What is the difference between IFNULL and COALESCE in MySQL?

    Aug 30, 2013 · SELECT IFNULL(NULL, 'Replaces the NULL') --> Replaces the NULL SELECT COALESCE(NULL, NULL, 'Replaces the NULL') --> Replaces the NULL In both clauses the …

  2. How to check if field is null or empty in MySQL? - Stack Overflow

    Dec 6, 2016 · This is very useful, but to be more clear, the second argument of ifnull () in the example should be 'empty or null'.

  3. select - MySQL IFNULL ELSE - Stack Overflow

    I have a select statement where I want to make the select conditional like this: IFNULL(field_a, field_a, field_b) so that it checks field a. If a is null then the select would be field b. Is that

  4. postgresql - sqlite IFNULL () in postgres - Stack Overflow

    May 12, 2017 · COALESCE is better than IFNULL for several reasons: COALESCE is a standard SQL function (implemented in ~every RDBMS), while IFNULL is not standard, even if widely …

  5. MySQL ifNull vs isNull? - Stack Overflow

    Jun 14, 2023 · What is the basic difference between IFNULL and ISNULL in MySQL, and how can they provide an optimized solution for handling null values? I have been using an IF condition …

  6. mysql - How can i use IFNULL in Where clause - Stack Overflow

    Jan 16, 2015 · I want to use IFNULL() in such a way that I can select the record containing NULL or, if a value is present, then select the record matchinga particular value. My query is: …

  7. mysql - NULLIF vs IFNULL - Stack Overflow

    Dec 7, 2017 · IFNULL directs the query to output the second parameter if the first paramenetr happens to be NULL, otherwise it outputs the first parameter. IFNULL is a MySQL only …

  8. SQLite equivalent to ISNULL(), NVL(), IFNULL() or COALESCE()

    The function ifnull is the SQLite equivalent of the isnull function the question was asking about. To anyone reading this now, please see SQLMenace's answer (from over a year and a half …

  9. What is the PostgreSQL equivalent for ISNULL () - Stack Overflow

    Jan 14, 2012 · greatvovan, Whether or not this was the intent of the original poster, I believe what people are wanting is the answer to "How do I check if a field is null", not necessarily "How …

  10. sql - understand IFNULL mysql - Stack Overflow

    Feb 20, 2019 · I am trying to understand IFNULL query when its wrapped in a case statement. I feel like there is redundancy want to understand bit more in detail. SELECT user_id, (CASE …