sqlite3查看select使用什么索引
kevin.Zhu 发布于:2019-11-6 15:51 分类:文摘 有 18 人浏览,获得评论 0 条
https://blog.csdn.net/majiakun1/article/details/50636007
eg:
CREATE TABLE Person (id integer primary key, name text, age integer default 5);
CREATE INDEX index_age on Person (age);
EXPLAIN QUERY PLAN select * from Person where age = 9;
selectid order from detail
---------- ---------- ---------- -------------------------------------------------
0 0 0 SEARCH TABLE Person USING INDEX index_age (age=?)
————————————————
版权声明:本文为CSDN博主「Ansel_m」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/majiakun1/article/details/50636007