Yahoo Search Búsqueda en la Web

Resultado de búsqueda

  1. Example. Test whether an expression is NULL: SELECT ISNULL (NULL); Try it Yourself » Definition and Usage. The ISNULL () function returns 1 or 0 depending on whether an expression is NULL. If expression is NULL, this function returns 1. Otherwise, it returns 0. Syntax. ISNULL ( expression) Parameter Values. Technical Details. More Examples.

  2. 25 de abr. de 2021 · The MySQL ISNULL() function is used to check for any NULL values in the expression passed to it as a parameter. If the expression has/results to NULL, it displays 1. If the expression does not have or result in NULL, the function returns 0.

  3. www.mysqltutorial.org › mysql-comparison-functions › mysql-isnull-functionMySQL ISNULL

    The ISNULL function returns 1 if the argument is NULL, otherwise, it returns 0. The following illustrates the syntax of the ISNULL function: ISNULL (expr) Code language:SQL (Structured Query Language)(sql) Consider the following examples:

  4. 6 de dic. de 2016 · 9 Answers. Sorted by: 250. Either use. SELECT IF(field1 IS NULL or field1 = '', 'empty', field1) as field1 . from tablename. or use the following code, which I copied from another answer (by Himanshu) to this same question, at https://stackoverflow.com/a/17833019/441757 — SELECT case when field1 IS NULL or field1 = '' then 'empty' else field1.

  5. Let's look at some MySQL ISNULL function examples and explore how to use the ISNULL function in MySQL. For example: mysql> SELECT ISNULL('techonthenet.com'); Result: 0 mysql> SELECT ISNULL(''); Result: 0 mysql> SELECT ISNULL(NULL); Result: 1 mysql> SELECT ISNULL(28); Result: 0

  6. 19 de nov. de 2019 · The MySQL ISNULL() function is used for checking whether an expression is NULL or not. This function returns 1 if the expression passed is NULL, else it returns 0. The ISNULL() function accepts the expression as a parameter and returns an integer a value 0 or 1 depending on the parameter passed.

  7. 3 de may. de 2022 · In MySQL, the ISNULL() function enables us to check whether a value is null or not. If it’s null, then 1 is returned, otherwise 0 is returned. Syntax. ISNULL(expr) Example. Here’s a simple example to demonstrate: SELECT ISNULL( null ); Result: 1. In this case, the expression is null and so the output is 1. Here it is with a non- null value: