gpt4 book ai didi

oracle - ORACLE中多列的总和

转载 作者:行者123 更新时间:2023-12-02 04:28:48 24 4
gpt4 key购买 nike

我有一个有 97 列的表,我想对 96 列求和。

select sum(col1+col2+col3+.....+col96) 
from tableA where meter_id=x;

我不想给出所有 96 个列名称,最好的方法是什么?问候,RR

最佳答案

无法避免写入每个列名称。您所能做的就是诅咒愚蠢的数据建模者并忙于剪切和粘贴。

关于oracle - ORACLE中多列的总和,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14749059/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com