提交 b3a0f632 authored 作者: Noel Grandin's avatar Noel Grandin 提交者: GitHub

Merge pull request #481 from marschall/document-with-recursive

Document recursive common table expressions
...@@ -192,6 +192,24 @@ Lists the schemas, tables, or the columns of a table. ...@@ -192,6 +192,24 @@ Lists the schemas, tables, or the columns of a table.
SHOW TABLES SHOW TABLES
" "
"Commands (DML)","WITH","
WITH [ RECURSIVE ] name ( columnName [,...] )
AS ( select )
select
","
Can be used to create a recursive query. The first select has to be a UNION.
Currently only one result set can be referred to by name.
","
WITH RECURSIVE t(n) AS (
SELECT 1
UNION ALL
SELECT n + 1
FROM t
WHERE n < 100
)
SELECT sum(n) FROM t;
"
"Commands (DDL)","ALTER INDEX RENAME"," "Commands (DDL)","ALTER INDEX RENAME","
ALTER INDEX [ IF EXISTS ] indexName RENAME TO newIndexName ALTER INDEX [ IF EXISTS ] indexName RENAME TO newIndexName
"," ","
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论