从视图(_evw)中查询,相当于从历史表(_h)中查询的同时指定gdb_to_date为'9999/12/31 23:59:59'
即
select count(t.objectid) from dlg_k_cgy_roalk_evw t;
也相当于
select count(t.objectid) from dlg_k_cgy_roalk_h t where t.gdb_to_date = to_date('9999/12/31 23:59:59', 'yyyy/mm/dd hh24:mi:ss')
本文介绍了一种从视图中进行查询的方法,并解释了如何等效地从历史表中查询,同时指定了结束日期为最远的将来日期。通过两个具体的SQL语句示例,展示了如何实现这一查询过程。
2021

被折叠的 条评论
为什么被折叠?



