錯誤描述:
錯誤代碼: 1118
Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
trans表 memo varchar(1000) 原來的字段類型。
1.ALTER TABLE trans MODIFY COLUMN memo TEXT DEFAULT NULL COMMENT '交易備注';
2.DEFAULT CHARSET=utf8mb4 -->utf8
這樣就可以再建立其他的varchar字段了。
ALTER TABLE trans ADD COLUMN cpic_coupon_number varchar(20) DEFAULT NULL COMMENT '券號';