文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>mysql中设置某个表中的某个字段为递增主键

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

时间:2008-06-20  来源:codebreaker

alter   table   tablename modify   filedname  int(11)   auto_increment ,add primary key (filedname);

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

相关阅读 更多 +
排行榜 更多 +
街头冲突帮派战斗

街头冲突帮派战斗

动作格斗 下载
componut

componut

休闲益智 下载
搜狗浏览器12.1版

搜狗浏览器12.1版

游戏工具 下载