Skip to content
Advertisement

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

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:

JavaScript

That only returns this query:

JavaScript

The archived field is a DATE field.

Is there a better way to solve this? I know I can just write the query myself, but I want to stick with the Active Record throughout my code.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement