sqlite3查看select使用什么索引
2016-02-04 18:04
267 查看
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=?)
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=?)
相关文章推荐
- redis 初步学习
- memcached—如何在Windows操作系统中安装、启动和卸载memcached
- 升级MySQL 5.7版本遇到的一些小问题
- redis缓存的一些技巧
- SQL:over partition by与group by 的区别
- dbca删除数据库失败
- sql server 基本操作一
- Sqlmap基础(一)
- 层级查询高级用法, 执行计划hash group by--工作备忘2016/02/02
- mysql-5.7.10普通安装
- Redis数据库高级实用特性:持久化机制
- mac下安装使用redis
- K3CLOUD自动备份Oracle数据库并删除指定天数前的备份
- 备份oracle并传输备份到windows服务器上
- 【Java Tutorial中文版 开篇综述】 Oracle(甲骨文)公司Java最新官方教程【译文】
- SQL Server Export and Import 导出和导入工具 导入EXCEL居然限制为255列
- Sqlite3 子查询的规则
- spy memcache 客户端使用体会
- 使用FMDB操作数据库
- 解决树莓派安装mysql后外部无法连接问题