从oracle中删除空间表

先删除主表,然后删除相关空间系统表的与主表相关的记录

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'

猜你喜欢

转载自blog.csdn.net/u013237351/article/details/78032717