I am learning Data Engineering on Azure. While learning about Azure SQL server, while learning about partitioning, I saw that partitioning SQL Server table is very different from other like in Bigquery or in Oracle.
Can anyone explain me how to create a partition table in Azure SQL Server. And , once the range for partition is reached,how we can automatically add new range in partition?
For example, if table is partitioned on Column Order_Year, and currently have values from 2015-2020. If I got a new value for that column, like 2021, how we can automatically add that partition to partition range?
1条答案
按热度按时间f45qwnt81#
To create partition table you should use partiotion function. Define partiotion function with range
Create partition scheme
Create table with
create table
command with the partition scheme specified.To add new range you can use alter partition function.