Does a foreign key field need a separate index?

Rael Bauer <support-/[email protected]>
Newsgroups gmane.comp.db.sqlite.general
Message-ID <[email protected]>
Hi,

Is a foreign key field automatically indexed, or will it benefit from a 
separately created index?

E.g.

CREATE TABLE [content](
   [note_id] INTEGER REFERENCES [notes]([id]) ON DELETE CASCADE,
   [data] BLOB);

Will note_id benefit from a separately created index?

Thanks
Rael

_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.