mysql之建表常识

*、mysql主键列自增长需求如下

主键列创建语法如下:
id int primary key auto_increment;字段类型最好是整型

*、MySQL修改主键属性

alter table tbl_name modify col_name type(int) auto_increment
资料来源:http://www.cnblogs.com/suiy-160428/p/5649911.html

猜你喜欢

转载自lbovinl.iteye.com/blog/2367818