質問: Mysqlでパーティショニングをしようとするとエラーが出てしまいます、どうすれば解決しますか? Syntax error: LIST PARTITIONING requires definition of VALUES IN for each partition ``` CREATE TABLE `part` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `zip` varchar(255) DEFAULT NULL, `pref` varchar(255) DEFAULT NULL, `ward` varchar(255) DEFAULT NULL, `area` varchar(255) DEFAULT NULL, `pref_kana` varchar(255) DEFAULT NULL, `ward_kana` varchar(255) DEFAULT NULL, `area_kana` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ALTER TABLE `part` PARTITION BY LIST COLUMNS(pref_kana) ( PARTITION AICHI VALUES IN ('AICHI KEN'), PARTITION AKITA VALUES IN ('AKITA KEN'), PARTITION AOMORI VALUES IN ('AOMORI KEN'), PARTITION CHIBA VALUES IN ('CHIBA KEN'), PARTITION EHIME VALUES IN ('EHIME KEN'), PARTITION FUKUI VALUES IN ('FUKUI KEN'), PARTITION FUKUOKA VALUES IN ('FUKUOKA KEN'), PARTITION FUKUSHIMA VALUES IN ('FUKUSHIMA KEN'), PARTITION GIFU VALUES IN ('GIFU KEN'), PARTITION GUMMA VALUES IN ('GUMMA KEN'), PARTITION HIROSHIMA VALUES IN ('HIROSHIMA KEN'), PARTITION HOKKAIDO VALUES IN ('HOKKAIDO'), PARTITION HYOGO VALUES IN ('HYOGO KEN'), PARTITION IBARAKI VALUES IN ('IBARAKI KEN'), PARTITION ISHIKAWA VALUES IN ('ISHIKAWA KEN'), PARTITION IWATE VALUES IN ('IWATE KEN'), PARTITION KAGAWA VALUES IN ('KAGAWA KEN'), PARTITION KAGOSHIMA VALUES IN ('KAGOSHIMA KEN'), PARTITION KANAGAWA VALUES IN ('KANAGAWA KEN'), PARTITION KOCHI VALUES IN ('KOCHI KEN'), PARTITION KUMAMOTO VALUES IN ('KUMAMOTO KEN'), PARTITION KYOTO FU VALUES IN ('KYOTO FU '), PARTITION MIE VALUES IN ('MIE KEN'), PARTITION MIYAGI VALUES IN ('MIYAGI KEN'), PARTITION MIYAZAKI VALUES IN ('MIYAZAKI KEN'), PARTITION NAGANO VALUES IN ('NAGANO KEN'), PARTITION NAGASAKI VALUES IN ('NAGASAKI KEN'), PARTITION NARA VALUES IN ('NARA KEN'), PARTITION NIIGATA VALUES IN ('NIIGATA KEN'), PARTITION OITA VALUES IN ('OITA KEN'), PARTITION OKAYAMA VALUES IN ('OKAYAMA KEN'), PARTITION OKINAWA VALUES IN ('OKINAWA KEN'), PARTITION OSAKA FU VALUES IN ('OSAKA FU '), PARTITION SAGA VALUES IN ('SAGA KEN'), PARTITION SAITAMA VALUES IN ('SAITAMA KEN'), PARTITION SHIGA VALUES IN ('SHIGA KEN'), PARTITION SHIMANE VALUES IN ('SHIMANE KEN'), PARTITION SHIZUOKA VALUES IN ('SHIZUOKA KEN'), PARTITION TOCHIGI VALUES IN ('TOCHIGI KEN'), PARTITION TOKUSHIMA VALUES IN ('TOKUSHIMA KEN'), PARTITION TOKYO TO VALUES IN ('TOKYO TO '), PARTITION TOTTORI VALUES IN ('TOTTORI KEN'), PARTITION TOYAMA VALUES IN ('TOYAMA KEN'), PARTITION WAKAYAMA VALUES IN ('WAKAYAMA KEN'), PARTITION YAMAGATA VALUES IN ('YAMAGATA KEN'), PARTITION YAMAGUCHI VALUES IN ('YAMAGUCHI KEN'), PARTITION YAMANASHI VALUES IN ('YAMANASHI KEN') ); ```
回答: varchar型のpref_kanaを使ってlistパーティショニングしようとしていますが 整数型しか受け付けないんじゃなかったでしたっけ?(参考)