I have a question regarding creating indexes:
I have the following in my Project's On Startup:
While the tables will be created only once (first run), will the indexes be recreated
each time the application is ran, or as with the tables, only first time?
I am asking this bacuse I saw the syntax for SQLite v3 and the syntax is:
(The [IF NOT EXISTS] is not supported by SQLite 2.x)
I have the following in my Project's On Startup:
Code:
base=data.."\\dbase.mrp"; db1 = SQLite.Open(base); SQLite.Query(db1, "CREATE TABLE obj(id integer primary key, naziv text, adresa text, tel text, akt integer);", nil); SQLite.Query(db1, "CREATE TABLE art(id integer primary key, naziv text, gru integer, akt integer);", nil); SQLite.Query(db1, "CREATE INDEX objid ON obj (id);"); SQLite.Query(db1, "CREATE INDEX artid ON art (id);");
each time the application is ran, or as with the tables, only first time?
I am asking this bacuse I saw the syntax for SQLite v3 and the syntax is:
Code:
CREATE [UNIQUE] INDEX [IF NOT EXISTS] [database-name .] index-name ON table-name ( column-name [, column-name]* )
(The [IF NOT EXISTS] is not supported by SQLite 2.x)
Comment