I am using the ActiveX class of the CodeIgniter class to query a MySQL database. I need to select rows in a table where the field is not set to NULL:
$this->db->where('archived !=', 'NULL'); $q = $this->db->get('projects');
This returns only this query:
SELECT * FROM projects WHERE archived != 'NULL';
The archived field is the DATE field.
Is there a better way to solve this problem? I know that I can just write the query myself, but I will not stick to Active Record in all my code.
null mysql activerecord codeigniter
rebellion Mar 22 2018-10-22T00: 00Z
source share