Skip to content Skip to sidebar Skip to footer

Android Sqlite Update Not Works Properly

I referred the following pages but still my problem is not solved, Android sqlite update table always return 0 , SQLite in Android How to update a specific row , Android SQLite u

Solution 1:

Your first line sets db to be null.

You have no database configured for the UPDATE command to work on.

Solution 2:

My problem solved

db = openOrCreateDatabase("data", Context.MODE_PRIVATE, null);

Post a Comment for "Android Sqlite Update Not Works Properly"