paint-brush
Introduction to Recursive CTEby@cyr1l
258 reads

Introduction to Recursive CTE

by cyril2mOctober 21st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Recursive CTE is a CTE (Common Table Expression) is a temporary named result set that you can reference within a SELECT, INSERT, UPDATE, or DELETE statement. Recursion queries are used to query hierarchical data. It avoids a cascade of queries, you can only do one query to retrieve the hierarchical data. The CTE has a subquery that refers to its own name. The WITH clause must begin with "WITH RECURSIVE" or "UNION [ALL]" The first part produces the initial row(s) for the CTE. The second part recurses by referring to the name in its FROM clause.
featured image - Introduction to Recursive CTE
cyril HackerNoon profile picture
cyril

cyril

@cyr1l

French Developer

About @cyr1l
LEARN MORE ABOUT @CYR1L'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

cyril HackerNoon profile picture
cyril@cyr1l
French Developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Joyk
Coffee-web