Will a multi column PRIMARY KEY create a multi column INDEX in SQLite?

Posted by Derk on Stack Overflow See other posts from Stack Overflow or by Derk
Published on 2010-04-12T14:36:07Z Indexed on 2010/04/12 14:43 UTC
Read the original article Hit count: 428

Filed under:
|
|
|

When creating a table with a multi column PRIMARY KEY like this,

CREATE TABLE t (a, b, PRIMARY KEY(a, b))

will it create a compound index that behaves the same as it would when indexed like this?

CREATE INDEX i ON t (a, b)

© Stack Overflow or respective owner

Related posts about sqlite

Related posts about primary-key