红联Linux门户
Linux帮助

mysql中设置某个表中的某个字段为递增主键

发布时间:2008-06-22 00:07:00来源:红联作者:theset
alter table tablename modify filedname int(11) auto_increment ,add primary key (filedname);

tablename替换为表名,filedname替换为想要设置递增主键的字段名,11替换为数据长度。
文章评论

共有 0 条评论