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