I have two tables in PostgreSQL:
Table indexces_grid
:
+---------------+------------+
| Column Name | Type |
+---------------+------------+
| indexid | bigint |
| iprange | int8range |
+---------------+------------+
Table citydetails
:
+---------------+-----------+
| Column Name | Type |
+---------------+-----------+
| ipfrom | bigint |
| ipto | bigint |
| cityname | varchar |
+---------------+-----------+
I want to insert the ipfrom
and ipto
into the single column iprange
of the indexces_grid
table.