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 8011225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:57:59+00:00 2026-06-04T18:57:59+00:00

This is my table creation in the oncreate method of my Dbadatper String CREATE_EXERCISES_TABLE

  • 0

This is my table creation in the oncreate method of my Dbadatper

String CREATE_EXERCISES_TABLE = "CREATE TABLE IF NOT EXISTS " + TABLE_EXERCISES+"("
        + KEY_ROWID + " INTEGER PRIMARY KEY, " 
        + KEY_EXER_NAME + " TEXT, "
        + KEY_DEFAULTMANWEIGHT + " INTEGER, "
        + KEY_DEFAULTWOMANWEIGHT + " INTEGER, "
        + KEY_WEIGHTS_FILT + " INTEGER, "
        + KEY_OLYMPIC_FILT + " INTEGER, "
        + KEY_EQUIPNEED_FILT + " INTEGER, "
        + KEY_UPPERBODY_FILT + " INTEGER, "
        + KEY_LOWERBODY_FILT + " INTEGER, "
        + KEY_LARGEAREA_FILT + " INTEGER);";
db.execSQL(CREATE_EXERCISES_TABLE);

This is my insert code for inserting an exercise

public void addExercise(Exercise exer) {
    SQLiteDatabase db = this.open();

    ContentValues values = new ContentValues();
    values.put(KEY_EXER_NAME, exer.getName()); 
    values.put(KEY_DEFAULTMANWEIGHT, exer.getDefaultManWeight());
    values.put(KEY_DEFAULTWOMANWEIGHT, exer.getDefaultWomanWeight());
    values.put(KEY_WEIGHTS_FILT, exer.getWeightFilt());
    values.put(KEY_OLYMPIC_FILT, exer.getOlympicFilt()); 
    values.put(KEY_EQUIPNEED_FILT, exer.getEquipFilt()); 
    values.put(KEY_UPPERBODY_FILT, exer.getUpperBodyFilt()); 
    values.put(KEY_LOWERBODY_FILT, exer.getLowerBodyFilt()); 
    values.put(KEY_LARGEAREA_FILT, exer.getLargeAreaFilt()); 

    // Inserting Row
    db.insert(TABLE_EXERCISES, null, values);
    db.close(); // Closing database connection
}

and this is my actual insert

ExerTable db= new ExerTable(ctx);
Exercise pushups =new Exercise("Pushups",0,0,0,0,0,1,0,1);
db.addExercise(pushups);

I’ve been stumped on this for a good while, whenever I try to run this I get this error

05-31 19:33:27.107: ERROR/Database(413): Error inserting upperbody_filter=1 olympic_filter=0 default_man_weight=0 default_woman_weight=0 weights_filter=0 lowerbody_filter=0 exername=Pullups large_area_filter=1 equipment_need_filter=1

05-31 19:33:27.107: ERROR/Database(413): android.database.sqlite.SQLiteException: table Exercises has no column named lowerbody_filter: , while compiling: INSERT INTO Exercises(upperbody_filter, olympic_filter, default_man_weight, default_woman_weight, weights_filter, lowerbody_filter, exername, large_area_filter, equipment_need_filter) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?);
  • 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-04T18:58:02+00:00Added an answer on June 4, 2026 at 6:58 pm

    Everything looks good to me, so my best guess is that you’re using an older version of the database that in fact doesn’t have a lowerbody_filter column. If you created the table earlier in development without that column and don’t have things properly set up with schema version numbers and SQLiteOpenHelper.onUpgrade(), then you’ll still be using the old version. A quick uninstall / reinstall should show if this is the case. If so, then your solution is to be sure to always increase your schema version number every time you change the schema, and to use SQLiteOpenHelper.onUpgrade() or some other means to make sure your database is always upgraded when necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following is my db creation code. @Override public void onCreate(SQLiteDatabase db) { db.execSQL(CREATE TABLE
Hi all I can't find the error in this table creation bit, seems really
this is my invoice table: Invoice Table: invoice_id creation_date due_date payment_date status enum('not paid','paid','expired')
this table i want to create job_id dynamic Jobs Title text Job Description text
This table is used to store sessions (events): CREATE TABLE session ( id int(11)
With this table: CREATE TABLE test_insert ( col1 INT, col2 VARCHAR(10), col3 DATE )
Using table creation as normal: t = Table(name, meta, [columns ...]) This is the
I have a table with this column: last_modified timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON
Can anyone alter this code to include one integer variable. Not including the database
I have a table that looks like this CREATE TABLE `time_table` ( `id` INT(10)

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.