Search code examples
androidandroid-databaseandroid-developer-api

How to add value from Android app to sql database?


I am getting these error of SQLiteException while making an app like employee tracker and basically it does not adding the data in the database. I am making this app using eclipse and sql database.

the error:
1. Here is the error sheet: -

  1. [Database Helpler class attached below : ]

(https://i.sstatic.net/gx5KU.png)

  1. [Add employees class attached here :]

(https://i.sstatic.net/Jf0OY.png)

  1. [SQL Database Create Table Query here : ]

(https://i.sstatic.net/9IimO.jpg)


Solution

  • It looks like your table is missing the column "Pass" from the error. Possible Typo?

    You should post more details with your questions including your code which shows where you are inserting the object and the attributes associated with