Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sqlite ignore index

sqlite> CREATE TABLE foo(bar);
sqlite> CREATE INDEX foo_idx ON foo(bar);
sqlite> EXPLAIN QUERY PLAN SELECT * FROM foo WHERE bar = ?;
QUERY PLAN
SEARCH TABLE foo USING COVERING INDEX foo_idx (bar=?)
 
-- ignore index using NOT INDEXED                                                
sqlite> EXPLAIN QUERY PLAN SELECT * FROM foo NOT INDEXED WHERE bar = ?;
QUERY PLAN
SCAN TABLE foo
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sqlite #ignore #index
ADD COMMENT
Topic
Name
5+8 =