严禁使用本人本站源码代码等程序用于违法违规业务,举报电话:13177795138,国家反诈相关平台,非法网站举报入口:净网云剑

:Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column

解决方法就是Sql order by 和 group BY一起使用时需要注意,.ORDER BY 排序字段必须包含在聚合函数或 GROUP BY 子句中其中聚合函数是:avg count max mi...

nginx+php 502问题 解决思路

nginx报502错误有的时候是PHP代码语法错误 ,在nginx下无法显示详细错误我们可以找到/www/server/php/73/etc/php-fpm.conf文件

CentOS7 下使用 Firewall 封IP

一、管理端口列出 dmz 级别的被允许的进入端口# firewall-cmd --zone=dmz --list-ports允许 tcp 端口 8080 至 dmz 级别# firewall-cmd ...

Linux - 查看用户登录记录

有关用户登录的信息记录在 utmp(/var/run/utmp)、wtmp(/var/log/wtmp)、btmp(/var/log/btmp) 和 lastlog(/var/log/lastlog)...

解决网页采集编码正确还是报错的问题

url = 'https://pic.netbian.com/tupian/24072.html'res = requests.get(url=url)if 'in str(r...

CSS样式calc 兼容写法

p{ width: 90%;/*写给不支持calc()的浏览器*/ width: calc(100% - (10px + 5px) * 2); /*注意运算符号后面必须留有空格,否则不生效*/...

伪静态实现禁用某目录执行权限

apache实现方式: Options +FollowSymlinks -Multiviews RewriteEngine On RewriteRule upload/(.*).(php)$ - [...

代码实例-js-时间戳转换成时间

//int str uinx 时间戳//如果是uinx时间戳记得乘于1000function set_time(str){ //这里是秒,如果是毫秒可以把*1000删除 var n = par...

laydate 时间框弹窗点击弹出后立马消失的问题解决

解决思路:为 laydate 添加 trigger: 'click' 属性layui.laydate.render({ elem: '#endDate',...

Thinkphp设置允许字段插入方法

if($post['id']allowfield(true)->save($post);}else{ // allowfield只针对模型方法中的save有效果 $r...

layui三级联动地址(省市区)下拉框实现代码

layui-select-address 地址选择插件 ...

python3.6报ModuleNotFoundError: No module named 'MySQLdb'及解决方法

ModuleNotFoundError: No module named 'MySQLdb'

友情链接 申请友链