I used the same command syntax above as in Mysql and would like set a unique key for the tables\'s filed on Android Device environment, however, the error prompted in LogCa
sqlite support alter in another way.
You can try the following:
create unique index unique_name on game(name);
If you want to create a constraint for two or more columns at one time:
create unique index unique_name on game(name1,name2,mame3);