sql如何将一张表中的一列数据分为两列显示

2025-04-14 18:33:43
推荐回答(1个)
回答1:

目前找到一个办法。

select id,max(money),sum(money)-max(money)
from tt
group by id