kopia lustrzana https://github.com/kartoza/docker-postgis
21 wiersze
734 B
SQL
21 wiersze
734 B
SQL
CREATE TABLE IF NOT EXISTS test_init_table (
|
|
id integer not null
|
|
constraint pkey primary key,
|
|
geom geometry(Point, 4326),
|
|
name varchar(30),
|
|
alias varchar(30),
|
|
description varchar(255)
|
|
);
|
|
|
|
INSERT INTO test_init_table (id, geom, name, alias, description)
|
|
VALUES
|
|
(
|
|
1,
|
|
st_setsrid(st_point(107.6097, 6.9120), 4326),
|
|
'Bandung',
|
|
'Paris van Java',
|
|
'Asia-Africa conference was held here'
|
|
) ON CONFLICT DO NOTHING;
|
|
|
|
|