mysql中创建索引 我需要创建一个索引,但是需要判断此索引是否存在,存在则删除之后在创建。请问下这个sql语句应该怎么写~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 create index xxx on tb(col,col2) mysql> if exists(select 1 from information_schema.statistics where table_schema='db' and table_name='tbName' and index_name='ix_name') drop index ix_name;索引一般不删除再建! MySQL Error:2013 Lost connection to MySQL server during query Mac下mysql启动问题 关于MySQL查询优化 关于mysql索引 mysql怎样删除mytable表中id字段中 删除含有'-'的记录啊 MySQL存储过程的问题 mysql如何起动的问题,我实在是不好意思问 奇怪,帮忙解决一下mysql的连接问题 关于MYSQL截取中英文字符串(最高只能发100分的帖子) mysql新手关于启动mysql server的问题 头疼的很久,大拿进来帮我治病啦。 mysql 数据分行
create index xxx on tb(col,col2)
mysql> if exists(select 1 from information_schema.statistics where table_schema=
'db' and table_name='tbName' and index_name='ix_name') drop index ix_name;索引一般不删除再建!