SDE数据存储说明
2013-05-30 09:10
253 查看
以下说明主要为已注册版本后的数据存储
Arcgis
SDE 中的存储为基表+A表-D表
基表为基本表,即原始表, 假设基表名为test
A表记录所有历史数据,命名为A(ID)表 ,如A22
D表记录删除的数据,命名为D(ID)表 ,如D22
基表和A 表,D表的关系,可以从注册表中查到 table_registry
select registration_ID from sde.table_registry
where table_name='test'
registration_ID就是对应的A表,D表的ID
基表的所有记录加上A表的在状态表中已完成的记录(即关联state_id字段,状态表states的closing_time字段不为空就是最终的结果,这样可以把中间的过程记录过滤掉)
再减去D表中的记录就可以了
示例:
select registration_ID from sde.table_registry
where table_name='test'
得到
registration_ID=22
要查所有的记录就可以用下列语句查询
select objectid,testfield from sde.a22 where
(sde_state_id not
in (select sde_state_id from sde.d22)
)
and sde_state_id in( select state_id from sde.states
where length(closing_time)>0
)
union
select objectid,testfield from SDE.test
Arcgis
SDE 中的存储为基表+A表-D表
基表为基本表,即原始表, 假设基表名为test
A表记录所有历史数据,命名为A(ID)表 ,如A22
D表记录删除的数据,命名为D(ID)表 ,如D22
基表和A 表,D表的关系,可以从注册表中查到 table_registry
select registration_ID from sde.table_registry
where table_name='test'
registration_ID就是对应的A表,D表的ID
基表的所有记录加上A表的在状态表中已完成的记录(即关联state_id字段,状态表states的closing_time字段不为空就是最终的结果,这样可以把中间的过程记录过滤掉)
再减去D表中的记录就可以了
示例:
select registration_ID from sde.table_registry
where table_name='test'
得到
registration_ID=22
要查所有的记录就可以用下列语句查询
select objectid,testfield from sde.a22 where
(sde_state_id not
in (select sde_state_id from sde.d22)
)
and sde_state_id in( select state_id from sde.states
where length(closing_time)>0
)
union
select objectid,testfield from SDE.test
相关文章推荐
- SQL Server 2005 int与datetime数据类型的存储结构说明
- Google Protocol Buffer 的使用和原理(无论对存储还是数据交换,都是个挺有用的东西,有9张图做说明,十分清楚)
- [摘]关于SQL Server中存储字符数据的相关说明
- Sql Server 删除数据表的存储过程,直接能用!(源码带说明)
- C语言数据类型存储位置及堆栈说明
- Unity5.4 Assetbundles官方说明七(在AssetBundle中存储和加载二进制数据)
- 【C/C++】【VS开发】结构体存储空间数据对齐说明
- . 有一个一维数组,里面存储整形数据,请写一个函数,将他们按从大到小的顺序排列,要求执行效率高,并说明如何改善执行效率(该函数必须自己实现,不能使用php函数)。
- SQL Server 2005 int与datetime数据类型的存储结构说明
- BMP图片的数据存储格式说明及显示数据的转换
- ArcSDE 9.2 CAD Client使用说明(提供AutoCAD和Microstation访问SDE数据)
- 关于51单片机存储空间的说明---它是如何存储程序和数据的呢?
- Linux基本数据类型大小——int,char,long int,long long int(/usr/include/limit.h文件对Linux下数据类型的限制及存储字节大小的说明)
- PostgreSQL text类型短数据存储说明
- MS SQL Server 2000中用于日期时间存储数据类型说明
- 数据存储之(一):iOS数据存储方式及沙盒的说明
- 数据存储及说明
- C#中的集合类比较和说明,组织数据在内存中的存储和取用
- 将 utf-8 数据存储在 SQL Server 中的说明
- Java中存储金额用什么数据类型?