0
ALTER TABLE ticket_details PARTITION BY LIST(ticket_status_id)
SUBPARTITION BY LIST(ticket_type_id)
(
PARTITION QTR1 VALUES IN (1)
(
SUBPARTITION sQTR1 VALUES IN (1),
SUBPARTITION sQTR2 VALUES IN (2)
),
PARTITION QTR2 VALUES IN (2)
(
SUBPARTITION s2QTR1 VALUES IN (1),
SUBPARTITION s2QTR2 VALUES IN (2)
),
PARTITION QTR3 VALUES IN (3)
(
SUBPARTITION s3QTR1 VALUES IN (1),
SUBPARTITION s3QTR2 VALUES IN (2)
),
PARTITION QTR4 VALUES IN (4),
(
SUBPARTITION s4QTR1 VALUES IN (1),
SUBPARTITION s4QTR2 VALUES IN (2)
),
PARTITION QTR5 VALUES IN (15)
(
SUBPARTITION s5QTR1 VALUES IN (1),
SUBPARTITION s5QTR2 VALUES IN (2)
),
PARTITION QTR6 VALUES IN (NULL)
(
SUBPARTITION snQTR1 VALUES IN (1),
SUBPARTITION snQTR2 VALUES IN (2)
),
PARTITION QTR7 VALUES IN (0)
(
SUBPARTITION s0QTR1 VALUES IN (1),
SUBPARTITION s0QTR2 VALUES IN (2)
)
);
我想運行此查詢來創建子分區,但它給了我這個錯誤。我嘗試了許多組合,但沒有任何工作,當我嘗試通過列表子分區。是否有可能做子分區由列表通過mariaDB中的內部列表分區的副本
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIST (ticket_type_id)
我發現沒有使用'SUBPARTITION',只爲'PARTITION'很少使用。考慮放棄分區。 –