

删除 goods 表中的 goods_desc 字段及货号字段,并增加 click_count 字段

在 goods_``name 列上加唯一性索引(用alter table方式)
alter table add unique index uniqididx(goods_name);
去查看索引

发现有goods_name的唯一索引
在 shop_price 列上加普通索引(用create index方式)
创建名为priceindex的普通索引
create index priceindex on goods(shop_price);

在 click_count 上增加普通索引,然后再删除 (分别使用drop index和alter table删除)

drop index删除
drop index count_index on goods;
alter table 删除
alter table goods drop index count_index;



















