StackOverflow 文件 postgresql 教程 遞迴查詢 整數之和 整數之和 Created: November-22, 2018 WITH RECURSIVE t(n) AS ( VALUES (1) UNION ALL SELECT n+1 FROM t WHERE n < 100 ) SELECT sum(n) FROM t; 連結到文件 遞迴查詢