Using UUIDs in SQLite
问题 Is it possible to use UUID values as a primary key in SQLite? I'm finding extremely limited information on the topic, so I'm not sure if SQLite even supports a UUID data type. Should I be storing a UUID as a string? 回答1: SQLite allows to use any data type as primary key. UUIDs can be stored either as strings (which are human-readable) or as 16-byte BLOBs (which might be faster if the records are so small that the difference matters). 回答2: CL's answer is correct but kind of skirts the issue at