楼主指的什么意思?是要再给那个表加上原来的AUTO_INCREMENT吗?如果是那样的话:
alter table yourtable
modify id int(11) auto_increment;如果要恢复删除前的数据,楼上的数学家说的对,没有备份估计是恢复不了的。
alter table yourtable
modify id int(11) auto_increment;如果要恢复删除前的数据,楼上的数学家说的对,没有备份估计是恢复不了的。
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;