//原生查询
public function query(){
$sql="SELECT 'name','email' FROM 'student' WHERE 'id' IN (4,7,8)";
dump(Db::query($sql));
}
朝游东海2019-03-22 17:53:14
SELECT id,user_id FROM tp_cart WHERE id IN ('41','42')
SELECT id,user_id FROM tp_cart WHERE id IN ('41','42')
SELECT 'name','email' FROM 'student' WHERE 'id' IN (4,7,8)
注意符号