$result = \think\Db::table('GoodTable')->where('GoodID',$goodID)->find();
SQL Server2005, DSN ,param 要不要设置,设置怎么样?
'type' => 'sqlsrv',
// 服务器地址
'hostname' => '127.0.0.1',
// 数据库名
'databa
// 用户名
'username' => 'sa',
// 密码
'password' => '123456',
// 端口
'hostport' => '1433',
// 连接dsn
//'Provider = SQLOLEDB.1;Persist Security Info = True;Data Source=2011-20140412UX;Initial Catalog=sun;User Id=sa;Password=123456;',
'dsn' => '',
//'databa
//'Provider = SQLOLEDB.1;Persist Security Info = True;databa
//'odbc:Driver={SQL Server};Server=127.0.0.1;Databa
// 数据库连接参数
'params' => ['Provider = SQLOLEDB.1;Persist Security Info = True;'],
最佳答案