Auto Incrementing 'id' Value When Inserting Into Sqlite
I'm trying to figure out how to get id value into database in an auto increment way, i.e it sets it self automatically depending on what entry is. here is how my DatabaseHandler co
Solution 1:
Remove the
values.put(KEY_ID, appointment.getId()); // Appointment ID
When the PRIMARY KEY
is not specified, a value is automatically generated.
Post a Comment for "Auto Incrementing 'id' Value When Inserting Into Sqlite"