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

  • Home
  • SEARCH
  • 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 7042349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:09:27+00:00 2026-05-28T02:09:27+00:00

I am using Android 2.2 with SQLite 3. I am using the query below

  • 0

I am using Android 2.2 with SQLite 3. I am using the query below but it’s erroring out with the error log I have pasted.

I am clueless about where I am going wrong.

My Code:

 private static final String table_post_natal_care= new String("create table post_natal_care ("+
    "number_of_meal text ,"+
    "excessive_bleeding text ,"+
    "number_of_pads_changed text ,"+
    "baby_warm text ,"+
    "number_of_times_baby_fed text ,"+
    "baby_crying text ,"+
    "number_of_times_baby_urinating text ,"+
    "mother_temperature text ,"+
    "mother_discharge text ,"+
    "mother_speaking_pattern text ,"+
    "mother_fits text ,"+
    "mother_perceives_milk text ,"+
    "mother_nipples text ,"+
    "mother_skin_color text ,"+
    "vagina_tearing text ,"+
    "baby_swollen_eyes text ,"+
    "baby_weight text ,"+
    "baby_temperature text ,"+
    "baby_pustules text ,"+
    "baby_skin text ,"+
    "baby_eyes text ,"+
    "baby_feeding text ,"+
    "baby_limbs text ,"+
    "baby_abdomen text ,"+
    "baby_cry text ,"+
    "baby_chest text,"+
    "baby_umbilicius text,"+ 
    "baby_vommit text"+
    ")"); 

LogTrace:

I/iDoc    (  277): returning createContentValues_pnc_visit=Yes
I/Database(  277): sqlite returned: error code = 1, msg = near ")": syntax error
D/dalvikvm(  277): GC_FOR_MALLOC freed 2186 objects / 720424 bytes in 56ms
E/Database(  277): Error inserting =Yes
E/Database(  277): android.database.sqlite.SQLiteException: near ")": syntax error: , while compiling: INSERT INTO post_natal_care() VA
LUES(?);
E/Database(  277):      at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
E/Database(  277):      at android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:91)
E/Database(  277):      at android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:64)
E/Database(  277):      at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:80)
E/Database(  277):      at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:36)
E/Database(  277):      at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1145)
E/Database(  277):      at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1536)
E/Database(  277):      at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1410)
E/Database(  277):      at org.atl.db.DBAdapter.insertPNCVisit(DBAdapter.java:824)
E/Database(  277):      at com.accenturelabs.idoc.PostNatalCheck.insertPNCData(PostNatalCheck.java:363)
E/Database(  277):      at com.accenturelabs.idoc.PostNatalCheck.access$6(PostNatalCheck.java:360)
E/Database(  277):      at com.accenturelabs.idoc.PostNatalCheck$4.onClick(PostNatalCheck.java:149)
E/Database(  277):      at android.view.View.performClick(View.java:2408)
E/Database(  277):      at android.view.View$PerformClick.run(View.java:8816)
E/Database(  277):      at android.os.Handler.handleCallback(Handler.java:587)
E/Database(  277):      at android.os.Handler.dispatchMessage(Handler.java:92)
E/Database(  277):      at android.os.Looper.loop(Looper.java:123)
E/Database(  277):      at android.app.ActivityThread.main(ActivityThread.java:4627)
E/Database(  277):      at java.lang.reflect.Method.invokeNative(Native Method)
E/Database(  277):      at java.lang.reflect.Method.invoke(Method.java:521)
E/Database(  277):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/Database(  277):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/Database(  277):      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-05-28T02:09:28+00:00Added an answer on May 28, 2026 at 2:09 am

    Your this error Log.

    E/Database( 277): android.database.sqlite.SQLiteException: near “)”:
    syntax error: , while compiling: INSERT INTO post_natal_care() VA

    It clearly says that you are having problem in inserting data into your table not in creating. So, check your insert query.

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

Sidebar

Related Questions

I am using SQLite in Android. I have the query, query executed and how
How do I get the row count of a query in Android using SQLite?
I have an android app that is using a SQLite database to determine if
I am trying to play continuous stream using android mediaplayer.but am not able to
I am getting the following error when I am using the code below. 02-24
I am wonder about how to update the table. I have use below two
I am using Google Analytics for Android but after turning on StrictMode I get
I've got an android app using a local sqlite database. private SQLiteDatabase mDb; when
I have an activity that runs a query on a Sqlite DB, gets a
I have a database and I am doing a query to it using Cursor

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.