楼主指的什么意思?是要再给那个表加上原来的AUTO_INCREMENT吗?如果是那样的话:
alter table yourtable
modify id int(11) auto_increment;如果要恢复删除前的数据,楼上的数学家说的对,没有备份估计是恢复不了的。
alter table yourtable
modify id int(11) auto_increment;如果要恢复删除前的数据,楼上的数学家说的对,没有备份估计是恢复不了的。
解决方案 »
- 白给分的题哦,来抢啊
- 关于MYSQL的innodb表备份的问题
- 没分了,不过求好心人帮忙
- 急求mysql-connector-java-3.0.0-beta-bin.jar,先谢啦!!!!
- mysql_real_connect()连接后,获取的MYSQL结构体内容错位。
- mysql 批量 update 时碰到的奇怪问题。。。
- mysql 在pb中使用insert,添加中文出现问题,如何解决?
- How can start MySql Server in Linux?
- 有没有谁使用过MYSQL的临时表?
- 困扰了很久的模糊查询问题
- 请问mysql 怎样远程备份数据库服务哭里的数据库?急
- select * from table where column='username'不能检索到中文的username,英文可以。求助!
modify id int(11) auto_increment not null;
alter table listbank change column BankID BankID int unsigned not null AUTO_INCREMENT
总是成功,但是用VC在程序里边:
CString str="alter table listbank change column BankID BankID int unsigned not null AUTO_INCREMENT";
mysql_query(mysql, str);总是返回1表示不成功
我在VC中如何来修改呢?
alter table listbank change column BankID BankID int unsigned not null AUTO_INCREMENT primary key;