Select rows where column is null

前端 未结 7 2088
余生分开走
余生分开走 2021-02-03 18:49

How do you write a SELECT statement that only returns rows where the value for a certain column is null?

7条回答
  •  孤独总比滥情好
    2021-02-03 19:16

    for some reasons IS NULL may not work with some column data type i was in need to get all the employees that their English full name is missing ,I've used :

    **SELECT emp_id ,Full_Name_Ar,Full_Name_En from employees where Full_Name_En = ' ' or Full_Name_En is null **

提交回复
热议问题