⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 1.3 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 1 of about 1 for Oasis (0.001 sec.)
WITH Clause – DuckDB 9414
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... ag ( id INTEGER , name VARCHAR , subclassof INTEGER ); INSERT INTO tag VALUES ( 1 , 'U2' , 5 ), ( 2 , 'Blur' , 5 ), ( 3 , 'Oasis' , 5 ), ( 4 , '2Pac' , 6 ), ( 5 , 'Rock' , 7 ), ( 6 , 'Rap' , 7 ), ( 7 , 'Music' , 9 ), ( 8 , 'Movies' , 9 ), ( 9 , 'Art' ... , NULL ); The following query returns the path from the node Oasis to the root of the tree ( Art ). WITH RECURSIVE tag_hierarchy ( id , source , path ) AS ( SELECT id , name , [ name ] AS p ... y.path ) FROM tag , tag_hierarchy WHERE tag.subclassof = tag_hierarchy.id ) SELECT path FROM tag_hierarchy WHERE source = 'Oasis' ; path [Oasis, Rock, Music, Art] Graph Traversal The WITH RECURSIVE clause can be used to express graph traversal on arbi ...
https://man.mtool.work/duckdb/1.3/sql/query_syntax/with.html
PREV 1 NEXT
DuckDB 1.3 Documentation / man.mtool.work