Schema changes - IBM
文章推薦指數: 80 %
In order to maintain the integrity of the relationship between the system-period temporal table and its associated history table, only certain changes to ... Schemachanges Inordertomaintaintheintegrityoftherelationship betweenthesystem-periodtemporaltableanditsassociatedhistory table,onlycertainchangestotheschemaofasystem-periodtemporal tablearepermitted.Anychangesthatwouldresultinthelossof dataarerestricted. Youcanmakethefollowingchangestoyoursystem-periodtemporal tables.Thesechangesareimplicitlypropagatedtotheassociated historytableifyouhavetheappropriateprivileges.Thesechanges cannotbeexplicitlymadetothehistorytable. ADDCOLUMN(exceptgeneratedcolumns) RENAMECOLUMN ALTERCOLUMN(incaseswherenohistorydataislost).Forexample, alteringthedatatypeofacolumnfromVARCHAR(50)toVARCHAR(100), orfromINTEGERtoDECIMALispermitted.However,thereversechange fromVARCHAR(100)toVARCHAR(50),orfromDECIMALtoINTEGERisblocked becauseitwouldreducethelengthorprecisionofacolumnandlikely causealossofdata. Youcannotmakethefollowingchangestoyoursystem-periodtemporal tablesbecausedatawouldlikelybelost: DROPCOLUMN ADDCOLUMN(generated) ALTERCOLUMN(incaseswherehistorydatamightbelost).For example,alteringthedatatypeofacolumnfromVARCHAR(50)toVARCHAR(100), orfromINTEGERtoDECIMALispermitted.However,thereversechange fromVARCHAR(100)toVARCHAR(50),orfromDECIMALtoINTEGERisblocked becauseitwouldreducethelengthorprecisionofacolumn. Versioningestablishesalinkbetweenyoursystem-periodtemporal tableanditsassociatedhistorytable.Whenversioningisactive, certainALTERTABLEoperationsareblockedonsystem-periodtemporal tablesandhistorytables. ALTERTABLEDROPPERIOD ALTERTABLEADDMATERIALIZED ALTERTABLEACTIVATENOTLOGGEDINITIALLY ALTERTABLEADDSECURITYPOLICY ALTERTABLEDROPSECURITYPOLICY ALTERTABLESECUREDWITHALTER ALTER TABLEoperationsthatarenotshowninthepreviouslistaresupported, butarenotpropagatedfromasystem-periodtemporaltabletoits historytable. Additionally,RENAMEINDEXandRENAMETABLEaresupported,but arenotpropagatedfromasystem-periodtemporaltabletoitshistory table. Parenttopic:System-periodtemporaltables
延伸文章資訊
- 1Time - Schema.org Data Type
Order cutoff time allows merchants to describe the time after which they will no longer process o...
- 2XSD Date and Time Data Types - W3Schools
Date and time data types are used for values that contain date and time. ... The following is an ...
- 3Schema changes - IBM
In order to maintain the integrity of the relationship between the system-period temporal table a...
- 4Schema of period submission | Download Scientific Diagram
Download scientific diagram | Schema of period submission from publication: Thesauri of Historica...
- 5Schema Configuration - Cortex metrics
Cortex chunks storage stores indexes and chunks in table-based data storages. When such a storage...