mysql列与注释修改SQL语句
-- 新增列与注释ALTER table tb1 add spec_mark int DEFAULT 0 COMMENT '0-表示普通,1-表示颜色';-- 修改列与注释 ALTER tb1 modify`s_type` tinyint(4) NOT NULL COMMENT '类型:1-价格;2-关键词 ' ;
·
-- 新增列与注释
ALTER table tb1
add spec_mark int DEFAULT 0 COMMENT '0-表示普通,1-表示颜色';
-- 修改列与注释
ALTER tb1 modify
`s_type` tinyint(4) NOT NULL COMMENT '类型:1-价格;2-关键词 ' ;
更多推荐
已为社区贡献2条内容
所有评论(0)