Are self-referencing or recursive foreign keys allowed in sqlite? Is there a special syntax to accomplish this? So far I’ve tried the following to no avail: FOREIGN KEY(ParentPrimaryKeyId) REFERENCES ThisTableName(PrimaryKeyId)
For reference, I’m targeting sqlite 3.6.22 in iOS 4.
Yes sqlite supports self-referencing foreign keys, for example: