mysql 修改字段長度


mysql 修改字段長度

alter table news  modify column title varchar(130);

alter table 表名 modify column 字段名 類型;

如:news 表里的title  字段 原來長度是 100個字符,現長度要改成130個字符

alter table news modify column title varchar(130);

ok 了!


免責聲明!

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



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