Files
data-services/geocoder/ip-addresses/sql/build_data_table.sql
2015-10-19 16:37:10 +02:00

9 lines
293 B
SQL

---- IP addresses table ---
-- Clear table
DELETE FROM ip_address_locations;
-- Updates table with new source data
INSERT INTO ip_address_locations (the_geom, network_start_ip) SELECT the_geom, network_start_ip::inet FROM latest_ip_address_locations;
DROP TABLE latest_ip_address_locations;