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