Can I create index on a column in the create table command in sqlite?
I tried this command below in sqlite3 in Android shell. It seems to work.
sqlit
A separate query is needed:
CREATE INDEX mytest_id_idx ON mytest(id);
Though it sounds like you want to make the id column the auto increment primary key?
id
CREATE TABLE mytest(id INTEGER PRIMARY KEY);