临时关闭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'");
    }

  

posted @ 2019-04-08 13:38  码农编程进阶笔记  阅读(23)  评论(0编辑  收藏  举报
返回顶部 有事您Q我