我不想改变这一点。
来自
equip mediumint(8) unsigned NOT NULL default '0',
到
equip int(11) unsigned NOT NULL default '0',
这
slotchange SMALLINT(3) unsigned NOT NULL default '0',
到
moves int(11) unsigned NOT NULL DEFAULT '0',
这
char_opt INT( 11 ) unsigned NOT NULL default '0',
到
unban_time int(11) unsigned NOT NULL default '0',
这
type enum('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U') NOT NULL default 'P',
到
type enum('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U','$') NOT NULL default 'P',
答案 0 :(得分:2)
以下是查询:
装备栏:
ALTER TABLE your_table MODIFY COLUMN equip int(11) unsigned NOT NULL default '0'
slotchange to moves:
ALTER TABLE your_table CHANGE slotchange moves int(11) unsigned NOT NULL DEFAULT '0'
char_opt to unban_time:
ALTER TABLE your_table CHANGE char_opt unban_time int(11) unsigned NOT NULL default '0'
键入列:
ALTER TABLE your_table MODIFY COLUMN type enum('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U','$') NOT NULL default 'P'
MODIFY
用于更改列的数据类型和其他属性,CHANGE
用于更改表列的名称和其他属性。
哦,然后逐个运行查询:D