Created
November 10, 2015 11:48
-
-
Save nkgsv/d5530d6be5b71b5674bc to your computer and use it in GitHub Desktop.
pstgres ltree example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS KeywordLtreeSandbox CASCADE; | |
CREATE TABLE KeywordLtreeSandbox( | |
id INT PRIMARY KEY, | |
value TEXT, | |
path ltree | |
); | |
INSERT INTO KeywordLtreeSandbox(id, value, path) VALUES | |
(0, 'A', '') | |
, (1, 'B', '1') | |
, (2, 'C', '2') | |
, (3, 'D', '1.3') | |
, (4, 'E', '1.4') | |
, (5, 'F', '1.5') | |
, (6, 'G', '2.6') | |
, (7, 'H', '2.7') | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment