Select rows where column is null

前端 未结 7 2083
余生分开走
余生分开走 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:18

    Do you mean something like:

    SELECT COLUMN1, COLUMN2 FROM MY_TABLE WHERE COLUMN1 = 'Value' OR COLUMN1 IS NULL
    

    ?

提交回复
热议问题