- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 mysql的where、having和group by
在查询过程中执行顺序:from>where>group(含聚合)>having>order>select。当我们用到 聚合函数(sum,min,max,avg,count) 后,又需要筛选聚合结果时,having就派上用场了。having子句与where都是设定条件筛选的语句,有相似之处也有区别。WHERE是在聚合语句执行前筛选记录的,聚合语句又要比having子...
2020-04-11 16:15:49
830
原创 Windows的Apache+php上传文件失败
报错:Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator at admin@example.com to inform th...
2020-03-31 17:18:03
726
原创 thinkphp5.1之Container容器和依赖注入
namespace think;container::set(‘demo2’,’\app\common\Demo’);绑定类的命名空间名,为实例化做准备。container::get(‘demo2’,[‘name’=>‘小可爱’]);获取容器中的对象实例$abstract 类名或者标识$vars 变量$newInstance 是否每次创建新的实...
2019-08-06 17:28:41
1534
转载 PHP 反射机制Reflection
PHP 反射机制Reflection简介PHP Reflection API是PHP5才有的新功能,它是用来导出或提取出关于类、方法、属性、参数等的详细信息,包括注释。class Reflection { }interface Reflector { }class ReflectionException extends Exception { }class ReflectionFunc...
2019-01-30 09:54:12
121
Container容器和依赖注入.docx
2019-08-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人