mysql 錯誤代碼:1118解決方法


錯誤描述:

錯誤代碼: 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 '券號';


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM