postgis数据库从一张表中过滤出一部分数据到新表中

python 复制代码
你可以使用以下步骤在PostGIS数据库中过滤objectid<100的数据,并将其创建为新表:

打开PostGIS数据库的终端或客户端工具(如Psql)。
选择你要过滤数据的表。假设表名为"original_table",该表包含一个名为"objectid"的列。
使用以下SQL查询语句创建新表并将过滤后的数据插入其中:
CREATE TABLE filtered_table AS
SELECT *
FROM original_table
WHERE objectid < 100;

例如

相关推荐
骐骥13 个月前
开源WebGIS全流程常用技术栈
geoserver·postgis·webgis
李佩锦peijin4 个月前
Python导入Shapefile到PostGIS的常见问题和解决方案
python·postgresql·qgis·postgis
TopFancy9 个月前
【POSTGIS】判定点位是否在范围内
postgis
高冷的恒哥10 个月前
PostgreSQL10安装postgis插件
postgis
@王坤10 个月前
postgis函数学习
学习·postgis
LEILEI18A1 年前
go gin gorm连接postgres postgis输出geojson
go·gin·postgis·geojson·gorm
csucoderlee1 年前
mysql使用st_distance_sphere函数报错Incorrect arguments to st_distance_sphere
数据库·mysql·postgis
峥嵘371 年前
利用PostGIS自带工具导入shp数据
postgis
LEILEI18A1 年前
postgis mvt矢量切片 django drf mapboxgl
postgresql·django·postgis·mvt·矢量切片