How to select rows where column value IS NOT NULL using CodeIgniter's ActiveRecord?

前端 未结 10 1801
太阳男子
太阳男子 2020-12-04 17:15

I\'m using CodeIgniter\'s Active Record class to query the MySQL database. I need to select the rows in a table where a field is not set to NULL:

$this->d         


        
10条回答
  •  抹茶落季
    2020-12-04 17:47

    And just to give you yet another option, you can use NOT ISNULL(archived) as your WHERE filter.

提交回复
热议问题