mysql :mysql 表的常见操作

 


取消列的自增长:
alter table cust_consume change cid cid int;

 

设置自增长列:
alter table cust_consume 
modify `cid` int(11) auto_increment;

 

设置自增列的起始值:
alter table cust_consume auto_increment=10;

 

为表添加备注:
alter table cust_consume comment ‘自动分配表‘

 

 

本文出自 “SQLServer MySQL” 博客,请务必保留此出处http://dwchaoyue.blog.51cto.com/2826417/1359285

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。