临时关闭Mysql ONLY_FULL_GROUP_BY
/**
* @author lcc807@ikoo8.com
*
* 临时关闭Mysql ONLY_FULL_GROUP_BY
*/
function closeSqlFullMode(){
DB::select("set session sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'");
}
赞赏码
![](https://files.cnblogs.com/files/lxwphp/zhifubao2.bmp)
![](https://files.cnblogs.com/files/lxwphp/weixin.bmp)
非学,无以致疑;非问,无以广识