如何判断oceanbase索引是否生效
1 个赞
看执行计划
3 个赞
多谢
2 个赞
sql前加explain 查看执行计划,看看有没有命中索引
1 个赞
查询计划中查看 NAME 列
3 个赞
查看表结构中的索引是否可用
show create table table_name;
查看索引是否生效
show index from table_name;
查看执行计划是否走到索引
explain sql;
1 个赞
感谢回复
1 个赞
感谢回复,多谢
1 个赞