当前位置:网站首页>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字段不到
没有搜索到相关问题,发个问题
边栏推荐
猜你喜欢

Golang: go get url and form attribute value

Chapter 9 of Huawei Deep Learning Course - Convolutional Neural Network and Case Practice

VoLTE基础学习系列 | 什么是SIP和IMS中的Forking

Srping bean in the life cycle

Golang:go开启web服务

研发过程中的文档管理与工具

rhcsa 第三次

sum of special numbers

22牛客多校1 C.Grab the Seat (几何 + 暴力)

Data Analysis 6
随机推荐
【ASWC Arxml结构分解】-7-Explicit(显式)和Implicit(隐式) Sender-Receiver communication描述差异
选择排序—直接选择排序和堆排序
MVVM project development (commodity management system 1)
Monitor the width and height of the parent element, adapt to the size of the plug-in
【MySQL】操作表DML相关语句
我说过无数遍了:从来没有一种技术是为灵活组合这个目标而设计的
Shell执行SQL发邮件
pytest接口自动化测试框架 | 跳过测试类
NIO programming
VSCode 快捷键及通用插件推荐
自制一款远程控制软件——VeryControl
Go supports OOP: use struct instead of class
VoLTE Basic Learning Series | Enterprise Voice Network Brief
What do the values 1, 2, and 3 in nodetype mean?
特殊的日子,值得纪念
云原生FAQ
Pytest | skip module interface test automation framework
Golang: go open web service
gethostbyname \ getaddrinfo 解析域名IP地址不安全的原因
【HDLBits 刷题】Circuits(1)Combinational Logic