Converting CTE to SQLiteData CommonTableExpression API #391
Unanswered
fracturedsoftware
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m trying to convert the following CTE using the CommonTableExpression API but not really getting anywhere. It orders hierarchical rows in prefix order using a computed path column:
"""
WITH RECURSIVE tree AS (
SELECT *,
printf('%04d', position) AS path
FROM DBListItem
WHERE parentID IS NULL
Any help would be appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions