createtable test_partition (
id number,
ac_dt VARCHAR2(8),
c3 number,
c4 varchar2(8))partitionby range (ac_dt)(partition test_p1 values less than ('20210101')tablespace users,partition test_20210101 values less than ('20210102')tablespace users,partition test_20210102 values less than ('20210103')tablespace users,partition test_20210103 values less than ('20210104')tablespace users
)tablespace users;--测试数据insertinsertinto test_partition values(1,'20201220',1,'20201220');insertinto test_partition values(2,'20201220',2,'20201220');insertinto test_partition values(3,'20210101',3,'20210101');insertinto test_partition