首页 >社区问答列表 >我一查询数据库数据就会提示错误,请问怎么解决

我一查询数据库数据就会提示错误,请问怎么解决

1、控制器接口

public function demo(){
   dump("测试控制能否访问");
   $sql = 'SELECT * FROM `user`';
   dump("测试sql语句是否错误");
   $res = Db::query($sql);

 var_dump($res);

2、错误提示

could not find driver




}