摘要: 1 计算1到100的累加的结果。 2 WITH RECURSIVE t(n) AS ( 3 VALUES (1) 4 UNION ALL 5 SELECT n+1 FROM t WHERE n < 100 6 ) 7 SELECT sum(n) FROM t; sum 5050 1 /* 2 htt 阅读全文
posted @ 2020-12-01 14:55 Johnson718 阅读(7032) 评论(0) 推荐(1) 编辑