//原生查询 public function query(){ $sql="SELECT 'name','email' FROM 'student' WHERE 'id' IN (4,7,8)"; dump(Db::query($sql)); }
SELECT id,user_id FROM tp_cart WHERE id IN ('41','42')
SELECT 'name','email' FROM 'student' WHERE 'id' IN (4,7,8)
注意記号
SELECT id,user_id FROM tp_cart WHERE id IN ('41','42')
SELECT 'name','email' FROM 'student' WHERE 'id' IN (4,7,8)
注意記号