Which version of TiDB supports recursive queries, and provide an example of SQL syntax?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TⅠDB递归查询哪个版本支持,求sqI写法例子

| username: TiDBer_4mYmoN9W

Which version of TiDB supports recursive queries? Please provide an example of the SQL syntax.

| username: ShawnYan | Original post link

Please refer to the official documentation: 公共表表达式 (CTE) | PingCAP 文档中心

CTE was introduced in TiDB 5.1.

| username: system | Original post link

This topic was automatically closed 1 minute after the last reply. No new replies are allowed.