当前位置:网站首页>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字段不到
没有搜索到相关问题,发个问题
边栏推荐
- 力扣每日一题-第44天-290. 单词规律
- 2022杭电多校第二场1011 DOS Card(线段树)
- R语言使用tidyquant包的tq_transmute函数计算持有某只股票的天、月、周收益率、ggplot2使用条形图可视化股票月收益率数据、使用百分比显示Y轴坐标数据、使用不同的色彩表征正负收益率
- mysql查看cpu使用情况
- Three aspects of Ali: How to solve the problem of MQ message loss, duplication and backlog?
- R语言使用gt包和gtExtras包优雅地、漂亮地显示表格数据:gtExtras包的pad_fn函数与gt::fmt函数一起用于填充包含数值的特定列、对数据列的数值进行十进制对齐(从小数点对齐)
- POJ2421道路建设题解
- 【杭电多校第四场 B题】最短路图+缩点dp
- Introduction to the basic principles, implementation and problem solving of crawler
- Go supports OOP: use struct instead of class
猜你喜欢
随机推荐
Introduction to the basic principles, implementation and problem solving of crawler
special day to remember
插入排序—直接插入排序和希尔排序
flink sql-client,怎么处理源端与目标增加端,sql-client包括映射表与JOB如
Flink SQL - client, how to deal with the source side and to increase the target, the SQL - client including mapping table and the JOB such as
Dbeaver connect the MySQL database and error Connection refusedconnect processing
pytest接口自动化测试框架 | 使用函数返回值的形式传入参数值
zip打包目录所有文件(含隐藏文件/夹)
[Tear AHB-APB Bridge by hand]~ Why aren't the lower two bits of the AHB address bus used to represent the address?
微信小程序请求封装
【杭电多校第四场 B题】最短路图+缩点dp
Golang:go模版引擎的使用
如何使用Photoshop合成星轨照片,夜空星轨照片后期处理方法
Upgrade to heavyweight lock, lock reentrancy will lead to lock release?
好的plm软件有哪些?plm软件排行榜
MATLAB程序设计与应用 2.5 MATLAB运算
小程序更多的手势事件(左右滑动、放大缩小、双击、长按)
LeetCode240+312+394
05-SDRAM:仲裁
Classwork (7) - #598. remainder operation (mod)








