Hi Everyone,
Can you check my syntax and correct it for me? I'm trying to create a primary key on the StoreName and ItemName columns of this SQLite table.
Thanks.
Can you check my syntax and correct it for me? I'm trying to create a primary key on the StoreName and ItemName columns of this SQLite table.
B4X:
objSql.ExecNonQuery("CREATE TABLE GroceryItems (" & _
"StoreName TEXT DEFAULT ' ', " & _
"ItemName TEXT DEFAULT ' ', " & _
"LocationInStore TEXT DEFAULT ' ', " & _
"IsleNumber TEXT DEFAULT ' ', " & _
"LocationWithinIsle TEXT DEFAULT ' ', " & _
"LocationHeight TEXT DEFAULT ' ', " & _
"PRIMARY KEY (StoreName, ItemName) ' ' " & _
")")
Thanks.