Select rows where column is null

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

    ?

    0 讨论(0)
提交回复
热议问题