当前位置:网站首页>navicat mysql 内存占用过高,被强制关闭
navicat mysql 内存占用过高,被强制关闭
2022-08-01 07:37:00 【CSDN问答】
navicat mysql 内存占用过高,被强制关闭
没有执行,复制sql 到查询窗口中,内存在我本地mac 直接增长到50G 提示强制关闭
Windows服务器上 内存占用到40G 提示未响应,强制关闭
代码大致有 170行左右,多数字段使用 sum(case when) 例如
sum(case when xfaqglxs=0 and sfczkryp=0 then 1 else 0 end+
case when xfaqglxs=0 and sfczwgsztcwqfhwxx in(1,2) then 1 else 0 end+
case when xfaqglxs=0 and sfczddzhcwgtfcdxx=1 then 1 else 0 end+
case when xfaqglxs=0 and xfcdxfcjycdsfszbzbpshbx=0 then 1 else 0 end+
case when xfaqglxs=0 and xfctd=1 then 1 else 0 end+
case when xfaqglxs=0 and sstdaqck=1 then 1 else 0 end+
case when xfaqglxs=0 and hzzdbjxtgnqk=1 then 1 else 0 end+
case when xfaqglxs=0 and snxhsxtgnqk=1 then 1 else 0 end+
case when xfaqglxs=0 and swxhsxtgnqk=1 then 1 else 0 end+
case when xfaqglxs=0 and zdpsmhxtgnqk=1 then 1 else 0 end+
case when xfaqglxs=0 and jxfpyxtgnqk=1 then 1 else 0 end+
case when xfaqglxs=0 and fhjlgnqk=1 then 1 else 0 end+
case when xfaqglxs=0 and qtmhxtgnqk=1 then 1 else 0 end+
case when xfaqglxs=0 and rymjcssncyrkrclzx=1 then 1 else 0 end+
case when xfaqglxs=0 and wgszqzf=1 then 1 else 0 end+
case when xfaqglxs=0 and djyrkrcgbf=1 then 1 else 0 end+
case when xfaqglxs=0 and bncjbzyhszgbyt=1 then 1 else 0 end+
case when xfaqglxs=0 and wgccjysyyrybwxp=1 then 1 else 0 end+
case when xfaqglxs=0 and zzbfyfzzbfgyssltj=1 then 1 else 0 end
)
sql 格式为
select a.xxid,a.q1-b.q1,a.q2-b.q2 from
(
select q1,q2 from xx1 group by xxid) a,
(
select q1,q2 from xx2 group by xxid
)b
where a.xxid=b.xxid
sql 执行没有问题,1秒之内能查询处结果,10字段不到
没有搜索到相关问题,发个问题
边栏推荐
- gethostbyname \ getaddrinfo 解析域名IP地址不安全的原因
- 特殊的日子,值得纪念
- zip package all files in the directory (including hidden files/folders)
- POJ1251丛林之路题解
- 【手撕AHB-APB Bridge】~ AHB地址总线的低两位为什么不用来表示地址呢?
- pytest接口自动化测试框架 | parametrize叠加使用
- Self-made a remote control software - VeryControl
- Golang:go获取url和表单属性值
- 我三本学历,五面阿里,被面试官“供”着出来了,拿了33*15的Offer
- pytest interface automation testing framework | skip test classes
猜你喜欢
随机推荐
Pytest | skip module interface test automation framework
rhcsa 第四天
类似 MS Project 的项目管理工具有哪些
Practical training Navicat Chinese and English mode switching
配置我的kitty
zip package all files in the directory (including hidden files/folders)
2022杭电多校第二场1011 DOS Card(线段树)
Case practice --- Resnet classic convolutional neural network (Mindspore)
小程序通过云函数操作数据库【使用get取数据库】
日志导致线程Block的这些坑,你不得不防
How to generate and configure public key certificate in Alipay
Golang: go static file processing
MATLAB program design and application of MATLAB 2.5
gethostbyname \ getaddrinfo 解析域名IP地址不安全的原因
电磁兼容简明教程(6)测试项目
小程序更多的手势事件(左右滑动、放大缩小、双击、长按)
C语言学习概览(二)
NIO programming
Monitor the width and height of the parent element, adapt to the size of the plug-in
Vim扩展内容