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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:41:10+00:00 2026-05-28T03:41:10+00:00

I am using sqlite database. I used the following code to store three values

  • 0

I am using sqlite database. I used the following code to store three values in a database.

sampleDB = this.openOrCreateDatabase(SAMPLE_DB_NAME, MODE_PRIVATE, null);
        sampleDB.execSQL("CREATE TABLE IF NOT EXISTS " + SAMPLE_TABLE_NAME
                + " (rowid INT , songname VARCHAR," + "  count INT);");
        int len = songlist.size();
        Log.v("songlist len", Integer.toString(len));
        for (int s = 0; s < songlist.size(); s++) {         

             sampleDB.execSQL("INSERT INTO " + SAMPLE_TABLE_NAME +
             " Values (1,"+songlist.get(s)+",1);");



            Log.v("After insert", "1");
        }

And I get the following error

01-13 20:58:08.903: E/AndroidRuntime(593): Caused by: android.database.sqlite.SQLiteException: no such column: android: INSERT INTO freq Values (1,android,1);

Need help.

  • 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-05-28T03:41:10+00:00Added an answer on May 28, 2026 at 3:41 am

    Try this. Maybe you will have to add quotes for string entry
    Values (1,\""+songlist.get(s)+"\",1);");

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

Sidebar

Related Questions

I am using the SQLite database and have the following persistent class (simplified): public
I am using an sqlite database to store log data. My table has a
I have a database file that is generated on a PC using Sqlite. This
I've used this tutorial in order to create and populate my own SQLite database
See this question . I have the following code that executes against a SQLIte
I am using the following code to read the rows from the Sqlite3 database.
I am using an sqlite database for a producer-consumer queue. One or more producers
I am new to using the SQLite database in iphone apps. I have created
does it make sense to use an Filecache when using Sqlite as Database ?
I'm tring to insert some records into my Sqlite database using the Entity Framework.

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.