SQLite - Any difference between table-constraint UNIQUE & column-constraint UNIQUE?
问题 Question about SQLite. In the CREATE TABLE SQL, we can add UNIQUE constraints in either way: column-constraint or table-constraint. My question is simple. Do they work differently? The only difference I could find was, in table-constraint, there could be multiple indexed-column s in a single constraint. Column-constraint: Table-constraint: Here is an example: CREATE TABLE Example ( _id INTEGER PRIMARY KEY, name TEXT UNIQUE ON CONFLICT REPLACE, score INTEGER ) and CREATE TABLE Example ( _id