I am new to andriod. I started creating a sample app using Sqlite databse.
When i run the app i m getting this error
ERROR/AndroidRuntime(878): Caused by:
android.database.sqlite.SQLiteException: table employee has 11 columns but
12 values were supplied: , while compiling: INSERT INTO employee
VALUES(null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
My Insert query is :
String sql = "INSERT INTO employee VALUES(null, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ? )";
db.execSQL(sql, new Object[]{id,fname, lname, title, skill, DOJ, prc,
officePhone, callPhone, email, mid});
Please can any one help me out this.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en