📜  pgsql sum switch case - SQL 代码示例
📅  最后修改于: 2022-03-11 15:05:26.606000             🧑  作者: Mango
代码示例1
SELECT
SUM(
CASE
WHEN condition_1 THEN result_1
WHEN condition_2 THEN result_2
[WHEN ...]
[ELSE else_result]
END
)
FROM ...