当前位置:网站首页>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字段不到
没有搜索到相关问题,发个问题
边栏推荐
- 电磁兼容简明教程(6)测试项目
- 聊一聊ICMP协议以及ping的过程
- Golang:go连接和使用mysql
- nodetype中值1、2、3分别代表什么意思
- 日志导致线程Block的这些坑,你不得不防
- Information system project managers must recite the work of the core test site (56) Configuration Control Board (CCB)
- 监听父元素宽高,自适应插件大小
- LevelSequence源码分析
- 特殊的日子,值得纪念
- zip package all files in the directory (including hidden files/folders)
猜你喜欢
随机推荐
The Bean's life cycle
Gethostbyname \ getaddrinfo DNS domain name IP address is not safe
Golang:go获取url和表单属性值
电磁兼容简明教程(6)测试项目
企业数据虚拟化综合指南
Vim扩展内容
Offer刷题——1
Summary of test points about app updates in different ways
七夕来袭——属于程序员的浪漫
app 自动化 打开app (二)
C语言学习概览(一)
Zero-code website development tool: WordPress
数据分析5
POJ2421道路建设题解
sum of special numbers
案例实践 --- Resnet经典卷积神经网络(Mindspore)
05-SDRAM: Arbitration
Go 支持 OOP: 用 struct 代替 class
MVVM project development (commodity management system 1)
表的创建、修改与删除









