Why is the native query going wrong? . .
尾生
尾生 2019-03-21 17:15:03
0
3
1284

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

尾生
尾生

reply all(1)
朝游东海
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)

注意符号

  • reply Solved, thank you.
    尾生 author 2019-03-27 07:43:24
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template