從oracle中刪除空間表
阿新 • • 發佈:2018-12-07
先刪除主表,然後刪除相關空間系統表的與主表相關的記錄
drop table GEO_TABLE
delete from sde.table_registry where table_name ='GEO_TABLE'
delete from sde.column_registry t where t.table_name ='GEO_TABLE'delete from sde.LAYERS t where t.table_name ='GEO_TABLE'
delete from sde.ALL_ST_GEOMETRY_COLUMNS_V t where t.table_name ='GEO_TABLE'
delete from sde.GDB_ITEMS t where t.name ='SDE.GEO_TABLE'
delete from sde.GEOMETRY_COLUMNS t where t.f_table_name ='GEO_TABLE'
delete from sde.GEOMETRY_COLUMNS t where t.g_table_name ='GEO_TABLE'
delete from sde.ST_GEOMETRY_COLUMNs t where t.table_name ='GEO_TABLE'
delete from sde.ST_GEOMETRY_INDEX t where t.table_name ='GEO_TABLE'