SQLite select where empty?

后端 未结 4 663
春和景丽
春和景丽 2021-01-29 23:33

In SQLite, how can I select records where some_column is empty?
Empty counts as both NULL and \"\".

4条回答
  •  甜味超标
    2021-01-29 23:58

    Maybe you mean

    select x
    from some_table
    where some_column is null or some_column = ''
    

    but I can't tell since you didn't really ask a question.

提交回复
热议问题