alert table_name modify youkey auto_increment not null primary key;
解决方案 »
- 表中有7000万条数据 数据库文件夹大小5G。建全文索引要多大空间?
- select * into outfile的问题
- BCB写入mysql blob字段没有结果
- mysql数据库损坏了,建表时只有.frm文件能否恢复数据库。
- 菜鸟问题,如果在myslq中输入命令错了,又按下了‘分号’,怎么才能退出来?
- 请教,关于mySQL网络连接的问题!
- 我是一个mysql的初学者,请教一个问题!
- mysql的odbc设置后为什么不能连接到远程主机呢?
- 关于MySql备份问题?
- select语句中包含变量(字段)
- 急死了,请高手指教
- 十万火急????请问各位有关PHP与MYSQL的问题....有谁知道好的PHP初学的网站或MYSQL数据库的网站....精华哟..........................
mysql>alter table aaa modify id auto_increment not null primary key;
mysql>alter table aaa modify id int auto_increment not null primary key;
在id 后面需要加上类型。