表索引维护,存储函数编写:、
delimiter //
create procedure index_information (in a varchar(15))
begin
select index_name,index_type,group_concat(column_name order by seq_in_index) as columns from information_schema.statistics where table_name = a group by index_name, index_type;
end //
delimiter ;
验证:
call index_infomation('feng');
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。