摘要:
phpstorm https://www.jetbrains.com/phpstorm/download/other.html goland https://www.jetbrains.com/zh-cn/go/download/other.html pycharm https://www.jetb 阅读全文
摘要:
官方文档(译):https://segmentfault.com/a/1190000021690551 1、基本 1.1、l5-repository 是什么 laravel5 的一个扩展包,抽象数据库层,主要用于封装数据查询和存储逻辑。 2、安装 安装 composer require prettu 阅读全文
摘要:
原文:https://blog.csdn.net/sqlquan/article/details/87795918 1、封装 /** * 获取一个日期范围内的日期 * @param int $interval 日期范围 * @param string $type 取值类型,-:获取之前日期;+:获取 阅读全文
摘要:
1、问题 $list = [ ['id'=>1, 'name'=>'不知火舞', 'location'=>'中单'], ['id'=>2, 'name'=>'橘右京', 'location'=>'打野'], ['id'=>3, 'name'=>'马可波罗', 'location'=>'ADC'], 阅读全文
摘要:
1、数据表 table1: id, name, country_codes ... country_codes字段值:AD,AE,AF,AG,AI,AL,AM,AO,AR,AT,AU,AZ,CN ... 2、查询 要求:查询国家编码包含'CN'的记录 2.1、FIND_IN_SET() FIND_I 阅读全文
摘要:
$months = '2022-06'; $time1 = date('Y-m-01 00:00:00', strtotime($months)); $time2 = date('Y-m-d 23:59:59', strtotime("$time1 +1 month -1 day")); print 阅读全文
摘要:
原文:https://blog.csdn.net/fu_fei_wen/article/details/78646410 一般求和 select sum(money) from user group by id; 按条件求和 select sum(if(type=1,money,0)) from u 阅读全文
摘要:
原文:https://www.jianshu.com/p/0b9054b33db3 1、supervisor简介 Supervisor是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启。它是通过fork/exec的方式 阅读全文
摘要:
1、数组 1.1、需求 [ {id:3,name:'张三'}, {id:4,name:'李四'}, {id:5,name:'王五'}] 取出name列,并成新数组 ['张三', '李四', '王五'] 1.2、map let arr = [ {id:3,name:'张三'}, {id:4,name: 阅读全文