WHERE - IS NULL not working in SQLite?

前端 未结 6 570
野性不改
野性不改 2020-12-09 08:14

Here\'s a strange one:

I can filter on NOT NULLS from SQLite, but not NULLS:

This works:

SELECT *          


        
6条回答
  •  旧时难觅i
    2020-12-09 08:37

    This works on SQLite in SQLite Manager for Firefox:

              select * from foo where not baz is not null
    

    The query above returns rows where column [baz] is null. :-) Yarin, maybe it will work for you? (The 'not' before the column name is not a typo).

    This query too finds rows where baz is null:

             select * from foo where [baz]  is  null
    

提交回复
热议问题