I want to know how it is better to work with databases in android: with
_id integer primary key autoincrement
or without autoincrement?
In my app I have 2 tables, one with lists,and one with products. If I delete a list and I don’t use autoincrement the new list I will do will have the products of the lists I deleted.
Thats mean that if I don’t use autoincrement when I delete a list from a table, I have to delete its product too. So, which method is better?
SQLIte db table always has autoincrement field rowid.
You can refer docs:
ROWID