时间:2021-07-01 10:21:17 帮助过:42人阅读
http://www.bkjia.com/PHPjc/320275.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/320275.htmlTechArticle// 方法一: PDO::__construct($dsn, $user, $pass, array(PDO::MYSQL_ATTR_INIT_COMMAND = "SET NAMES 'utf8';")); // 方法二: PDO::__construct($dsn, $user, $pass); PDO::exec("SET NAM...