Answers for "mysql check if field is null"

SQL
7

mysql where value is null

SELECT *
FROM contacts
WHERE last_name IS NULL;
Posted by: Guest on April-09-2020
1

how to check a db specific rows col is empty

SELECT * FROM table WHERE some_col IS NULL OR some_col = '';
Posted by: Guest on August-29-2020
4

check if value is null mysql

SELECT * from TABLE where CODE IS NULL OR CODE!='C'
Posted by: Guest on March-17-2020
0

if column value is null then in mysql

SELECT 
    contactname, IFNULL(bizphone, homephone) phone
FROM
    contacts;
Posted by: Guest on November-05-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language