由于项目需要使用oracle数据库,Composer安装驱动后(https://github.com/top-think/think-oracle)用原生SQL可以读取数据(Db::query('select * from think_user where id=:id',['id'=>8]);成功),但是用(Db::table('think_user')->where('id',8)->select();也试过Db::name和db均报错);
Argument 1 passed to think\db\Connection::__construct() must be of the type array, object given, called in D:\phpStudy\WWW\thinkphp\thinkphp\library\think\db\Query.php on line 129 and defined
错误行:public function __construct(array $config = [ ])