给某张表添加一个列:
语法格式:alter table table_name Add column column_name column_type default 0 Comment ‘xxx‘;案例:alter table oem_programlist ADD column commentCount int(22) DEFAULT 0 COMMENT ‘视频评论条目数量‘;
时间: 2024-10-20 07:55:07
给某张表添加一个列:
语法格式:alter table table_name Add column column_name column_type default 0 Comment ‘xxx‘;案例:alter table oem_programlist ADD column commentCount int(22) DEFAULT 0 COMMENT ‘视频评论条目数量‘;