Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sqlite without primary key?

Tags:

android

sqlite

Is there a way in Android to have an sqlite database which does have one or two tables which do NOT have a primary key?

The reason being that the column with the primary key is to be implemented later in the process, I do not know what that is supposed to be yet but I want to get the database working.

like image 697
newnewbie Avatar asked Sep 21 '14 00:09

newnewbie


1 Answers

You don't need to define a primary key. By default, the table will have a key based on the rowid value.

More information can be found in the documentation here.

like image 114
Eugene S Avatar answered Oct 12 '22 00:10

Eugene S