创建mysql数据表的时候没有设置自增,后面怎么设置成自增?
用命令或phpmydamin
------解决方案--------------------
命令:alter table tt modify id int auto_increment primary key
phpmyadmin也有相关功能。
------解决方案--------------------
进入phpmyadmin看表结构,有一项修改字段的,进去后把auto_increment打钩。
------解决方案--------------------
这年代都用sql工具了:http://download.csdn.net/detail/dmtnewtons/4230136
图形化界面,很好操作
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号