Question about SQLite.
In CREATE TABLE SQL, we can add UNIQUE constraints in any case: a column constraint or a table constraint. My question is simple. Do they work differently?
The only difference I could find was that in the table constraint there could be several indexed-column in one constraint.
Restriction column: 
Limit table: 
Here is an example:
CREATE TABLE Example ( _id INTEGER PRIMARY KEY, name TEXT UNIQUE ON CONFLICT REPLACE, score INTEGER )
and
CREATE TABLE Example ( _id INTEGER PRIMARY KEY, name TEXT, score INTEGER, UNIQUE (name) ON CONFLICT REPLACE )
Different?
source share