阅读(4606) (0)

SQL执行

2017-11-24 10:36:55 更新

执行一条SQL

$db->query("select * from table_name where id = 1")->fetch();


//同样如此,query链式操作也提供 fetch fetchAll 获取数据的方法