我遇到了以下 sql 语句的一些问题:
$query= $this->db->get_where('navigation', 'linkname IS NOT NULL
AND parent IS NULL
AND type="main" //this doesn't work!!
AND ORDER BY sortnumber ASC');
如何以合理的方式将 type="main" 添加到此语句中?非常感谢!