On Wed, Dec 21, 2011 at 3:49 PM, Gopal <[email protected]> wrote:
>
> 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, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
>
Here, you are supplying 12 values (including null).
> db.execSQL(sql, new Object[]{id,fname, lname, title, skill, DOJ, prc,
> officePhone, callPhone, email, mid});
>
But here it seems, you have 11 columns.
--
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