Created
June 21, 2012 00:51
-
-
Save mudrd8mz/2963227 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
test=# select * from files f left join refs r on f.refid = r.id left join repos p on r.repoid = p.id left join types t on t.id = p.typeid; | |
id | refid | id | repoid | id | typeid | id | name | |
----+-------+------+--------+------+--------+------+-------- | |
2 | 1 | 1 | 2 | 2 | 3 | 3 | boxnet | |
3 | 2 | 2 | NULL | NULL | NULL | NULL | NULL | |
1 | NULL | NULL | NULL | NULL | NULL | NULL | NULL | |
(3 řádky) | |
test=# select * from files f left join refs r on f.refid = r.id join repos p on r.repoid = p.id join types t on t.id = p.typeid; | |
id | refid | id | repoid | id | typeid | id | name | |
----+-------+----+--------+----+--------+----+-------- | |
2 | 1 | 1 | 2 | 2 | 3 | 3 | boxnet | |
(1 řádka) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment