MySQL returns all rows with empty string as where clause MySQL returns all rows with empty string as where clause codeigniter codeigniter

MySQL returns all rows with empty string as where clause


Try using following, if you are using codeigniter:

$this->db->where("field_name = ''");