You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am now doing 'S04-P01-Practice'. However, I got error when I want to create a LIST partition. Here is my code and the error message. Could you please help?
CREATETABLE `sample_staff`.`invoice_partitioned`ASSELECT*FROM`sample_staff`.`invoice`;
ALTERTABLE invoice_partitioned ADD COLUMN department_code VARCHAR(35);
ALTERTABLE`sample_staff`.`invoice_partitioned` REMOVE PARTITIONING ;
UPDATE invoice_partitioned,
department_employee_rel,
department
SETinvoice_partitioned.department_code=department.codeWHEREinvoice_partitioned.employee_id=department_employee_rel.employee_idANDdepartment_employee_rel.department_id=department.idANDinvoice_partitioned.invoiced_date BETWEEN department_employee_rel.from_dateANDdepartment_employee_rel.to_date
;
ALTERTABLE invoice_partitioned
partition BY LIST(department_code) (
partition CS valuesin ("CS"),
partition DEV valuesin ("DEV"),
partition FIN valuesin ("FIN"),
partition HR valuesin ("HR"),
partition MKT valuesin ("MKT"),
partition PROD valuesin ("PROD"),
partition QA valuesin ("QA"),
partition RES valuesin ("RES"),
partition SAL valuesin ("SAL")
)
;
Error message: Error Code: 1697. VALUES value for partition 'CS' must have type INT
The text was updated successfully, but these errors were encountered:
Hi @michaljuhas
I am now doing 'S04-P01-Practice'. However, I got error when I want to create a LIST partition. Here is my code and the error message. Could you please help?
Error message:
Error Code: 1697. VALUES value for partition 'CS' must have type INT
The text was updated successfully, but these errors were encountered: