Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8256775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:58:23+00:00 2026-06-08T01:58:23+00:00

I am updating table in database using the following command: public long UpdateIncomeDB(String item,String

  • 0

I am updating table in database using the following command:

public long UpdateIncomeDB(String item,String price,String update) throws SQLException
{
    ContentValues initialValues = new ContentValues();
    initialValues.put(KEY_DESC, item);
    initialValues.put(KEY_INCOME, price);
    initialValues.put(KEY_TOTAL, price);
    db.update(DATABASE_TABLE, initialValues, "description" + "=" +update, null);
    return 0;
}

But is showing error that the particular column doesn’t exists..But i checked database which has that column entry..Please help me..

MY logcat is:

07-20 11:25:03.157: E/Database(1090): Error updating total=45.00 price=45.00 description=ghhy using UPDATE incomexpense SET total=?, price=?, description=? WHERE description=ghhy
07-20 11:25:03.167: D/AndroidRuntime(1090): Shutting down VM
07-20 11:25:03.167: W/dalvikvm(1090): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
07-20 11:25:03.167: E/AndroidRuntime(1090): Uncaught handler: thread main exiting due to uncaught exception
07-20 11:25:03.617: D/dalvikvm(1090): GC freed 7418 objects / 376640 bytes in 421ms
07-20 11:25:03.617: E/AndroidRuntime(1090): android.database.sqlite.SQLiteException: no such column: ghhy: , while compiling: UPDATE incomexpense SET total=?, price=?, description=? WHERE description=ghhy
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.database.sqlite.SQLiteProgram.native_compile(Native Method)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:110)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:41)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1027)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:1556)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:1500)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at com.budget1.DBadapter.UpdateIncomeDB(DBadapter.java:575)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at com.budget1.IncomeDetailsEdit$2.onClick(IncomeDetailsEdit.java:46)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.view.View.performClick(View.java:2364)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.view.View.onTouchEvent(View.java:4179)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.widget.TextView.onTouchEvent(TextView.java:6541)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.view.View.dispatchTouchEvent(View.java:3709)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.app.Activity.dispatchTouchEvent(Activity.java:2061)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.os.Looper.loop(Looper.java:123)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at android.app.ActivityThread.main(ActivityThread.java:4363)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at java.lang.reflect.Method.invokeNative(Native Method)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at java.lang.reflect.Method.invoke(Method.java:521)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
07-20 11:25:03.617: E/AndroidRuntime(1090):     at dalvik.system.NativeStart.main(Native Method)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:58:25+00:00Added an answer on June 8, 2026 at 1:58 am

    Put update value inside quotes

    "description" + "=" +update
    

    Put quotes

    "description" + "=" +"'"+update+"'"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am updating table using PreparedStatement the following code works perfectly pst = conn.prepareStatement(UPDATE
I have a table which I want to update using a simple update command.
I am updating my table with the following statement: UPDATE table SET percentage =
I've a function updating a database table using Spring's JdbcTemplate and for some reason
I need to take some actions which involve updating a database table when a
I'm updating a program and adding a new table to the database. The program
I am having trouble updating my Database from my code using a DataSet. I'm
I'm updating a table from another table in the same database - what would
so I'm writing an interface for updating and displaying a database table, and each
I have created Rails database using the following schema: ActiveRecord::Schema.define(:version => 20090807141407) do create_table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.