我想从表中选择所有行,所以我添加了一个不存在的条件,但是我有一个错误,说"解析错误:语法错误,意外''(''(t_constant_encapsed_string(
这是我的代码:
$query = 'select * from etudiant where NOT EXISTS (select * from etudiant where matricule ='.$new_matricule') ';
$exec = $this->db->query($query);
峡谷告诉我我做错了什么?
语法错误添加dot
$query = 'select * from etudiant where NOT EXISTS (select * from etudiant where matricule ='.$new_matricule.') ';