mysql数据库中如何修改已建好的表中的【列名】【列的属性】

sql命令:alter table tbl_name change old_col_name new_col_name data_type not null auto_increment primary key

案例如下:
修改前的表结构 查询表结构的命令:desc table_name;

修改后的表结构


posted on 2015-07-25 19:06  赤壁男孩  阅读(6966)  评论(0编辑  收藏  举报