Mysql 使用sql语句添加列,修改列默认值,添加类注释
-- 添加列 alter table bas_news add attend_count int ; -- 添加默认值 alter table bas_news alter column attend_count set default 0; -- 添加列注释 alter table bas_news modify column attend_count int comment \'参与人数\'
-- 添加列 alter table bas_news add attend_count int ; -- 添加默认值 alter table bas_news alter column attend_count set default 0; -- 添加列注释 alter table bas_news modify column attend_count int comment \'参与人数\'