turn select statement to insert
This commit is contained in:
parent
d930ae3a75
commit
8433a95f2d
@ -18,9 +18,10 @@
|
|||||||
# geometry_id serial PRIMARY KEY,
|
# geometry_id serial PRIMARY KEY,
|
||||||
# source_id varchar(30)
|
# source_id varchar(30)
|
||||||
# );"
|
# );"
|
||||||
psql -c "SELECT geometry_id, source_id
|
psql -c "INSERT INTO new_geometries ( geometry_id, source_id )
|
||||||
FROM geometries
|
SELECT geometry_id, source_id
|
||||||
WHERE source_id NOT IN ( SELECT ref_toid FROM buildings);"
|
FROM geometries
|
||||||
|
WHERE source_id NOT IN ( SELECT ref_toid FROM buildings);"
|
||||||
|
|
||||||
# for building in buildings
|
# for building in buildings
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user