We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb681f2 commit da51e4eCopy full SHA for da51e4e
demo/initdb/04-views.sql
@@ -1,6 +1,5 @@
1
CREATE TABLE cities (
2
- id serial PRIMARY KEY,
3
- name text,
+ name text PRIMARY KEY,
4
geom geometry(Point, 4326)
5
);
6
@@ -10,5 +9,5 @@ INSERT INTO cities (name, geom) VALUES
10
9
11
-- View with geometry and featureID column (no PK)
12
CREATE VIEW cities_view AS
13
- SELECT id AS id, name, geom FROM cities;
+ SELECT name as id, * FROM cities;
14
0 commit comments