sqlite3查看select使用什么索引

前端之家收集整理的这篇文章主要介绍了sqlite3查看select使用什么索引前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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=?)

猜你在找的Sqlite相关文章