随笔分类 - thinkphp
摘要:在 Homestead/scripts 目录下新建文件 serve-tp5.sh 内容如下
阅读全文
摘要:A:需求 1、从excel把数据导入mysql 2、简单数据清洗 3、数据查询优化 B:解决方案 1、excel的数据量比较大(60w),先把excel转成csv文件(手动操作),然后使用SpreadsheetReader(github)把数据写入txt(因为有些数据需要处理),使用mysql的lo
阅读全文
摘要:input('server.REQUEST_SCHEME') . '://' . input('server.SERVER_NAME')
阅读全文
摘要:看源码处理的。 query.php getJoinTable 方法 join(['yx_article a'],'a.id=msg.aid','LEFT')//使用数组就可以处理
阅读全文
摘要://多少分钟前 if(!function_exists('get_time')) { function get_time($time) { $now_time = time();//现在时间 $dur = $now_time - $time; if ($dur $beginToday,'endToday'=>$endToday]; ...
阅读全文
摘要:$a = Db::name(表名)->field(字段)->where(条件)->buildSql(); $b = Db::name(表名)->field(字段)->where(条件)->buildSql(); $c = Db::name(表名)->field(字段)->where(条件)->union([$a, $b])->buildSql(); $list = Db::table($c . ...
阅读全文
摘要:php -m 查看有没有pdo_mysql 拓展 yum install php70w-mysqlnd.x86_64 装上,重启apache
阅读全文
浙公网安备 33010602011771号