Skip to content
Snippets Groups Projects
Commit dfadd69f authored by Martin Mareš's avatar Martin Mareš
Browse files

DB: Komentář: region_descendants jsou reflexivní

parent e88f66e5
No related branches found
No related tags found
1 merge request!122Různé drobné opravy
...@@ -404,6 +404,7 @@ CREATE TABLE reg_requests ( ...@@ -404,6 +404,7 @@ CREATE TABLE reg_requests (
-- Statistiky -- Statistiky
-- Pro každý region spočítáme všechna podřízená místa -- Pro každý region spočítáme všechna podřízená místa
-- (každý region je svým vlastním potomkem)
CREATE VIEW region_descendants AS CREATE VIEW region_descendants AS
WITH RECURSIVE descendant_regions(place_id, descendant) AS ( WITH RECURSIVE descendant_regions(place_id, descendant) AS (
SELECT place_id, place_id FROM places SELECT place_id, place_id FROM places
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment