原来的:

我们要把类名字、品牌名字改成类id和品牌id:

alter table goods change cate_name cate_id int not null,change brand_name brand_id int not null;

改之后: