I created a new table in SQLite, and named one of the columns as id.
When I access that database at runtime, it generates an error. I found that in my database, I have to use _id instead of id. Why is it necessary for this column to be named as _id?
It’s always a good idea to declare your primary key as:
That way, Android’s functions, which could use the
_idto make certain things work for example the id’s in aCursorAdapter.From this source (direct quote)