简体   繁体   English

基于动态表的视图

[英]View based on dynamic tables

we have a table XXX_CHARGE_DETAILS which has huge data...and have decided to backup this data into monthly tables like XXX_CHARGE_DETAILS_JAN_15 based on the month of transaction's date. 我们有一个表XXX_CHARGE_DETAILS,其中包含大量数据...,并已决定根据交易日期将其备份到月表中,例如XXX_CHARGE_DETAILS_JAN_15。

we need to create a view based on all these backup tables...Is there a way where in we can create a view that considers all backup tables created till date dynamically rather than passing statically(updating every month). 我们需要基于所有这些备份表创建一个视图...有一种方法可以让我们创建一个视图,该视图考虑动态创建的所有备份表,而不是静态传递(每月更新)。

Thanks, Vijay 谢谢,维杰

I guess you should consider to partition the table instead of maintaining different copies by time period if performance is what you are looking for 我想如果您正在寻找性能,则应该考虑对表进行分区,而不是按时间段维护不同的副本

https://msdn.microsoft.com/en-us/library/ms190787(v=sql.105).aspx https://msdn.microsoft.com/zh-CN/library/ms190787(v=sql.105).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM