Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: Range分区
To improve efficiency, please provide the following information. A clear problem description can be resolved more quickly:
【TiDB Usage Environment】Production
【TiDB Version】5.4.1
【Encountered Problem】
v3.0.8 version
One of the columns in a table is of varchar(8) type, with output format like this: 2022-01
Creating a partition: PARTITION BY RANGE (month(concat(test
, “-01”)) - 1)
Partitions by month based on the output result
v5.4.1 version
This partitioning method is not supported. How should it be modified to partition by months from 01 to 12?