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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:51:23+00:00 2026-06-11T21:51:23+00:00

I use the following query in my method Cursor c = sqLiteDatabase.rawQuery(SELECT Content3 FROM

  • 0

I use the following query in my method

 Cursor c = sqLiteDatabase.rawQuery("SELECT Content3 FROM " +
             MYDATABASE_TABLE +
             " where Content1 = '"+value1+"'", null);

But it throw Exception and app be force close. I pass the value1 to the method. Logcat as follows

09-21 17:14:21.242: ERROR/AndroidRuntime(16511): FATAL EXCEPTION: main
09-21 17:14:21.242: ERROR/AndroidRuntime(16511): android.database.sqlite.SQLiteException: no such column: Content3: , while compiling: SELECT Content3 FROM photodetails where Content1 = '2192012'
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:92)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:65)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:83)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:42)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1356)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1324)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at roman10.tutorial.fileobserver.SQLiteAdapter.fetchresult(SQLiteAdapter.java:80)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at roman10.tutorial.fileobserver.FileModificationMonitor$3.onClick(FileModificationMonitor.java:56)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.view.View.performClick(View.java:2485)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.view.View$PerformClick.run(View.java:9080)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.os.Handler.handleCallback(Handler.java:587)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.os.Handler.dispatchMessage(Handler.java:92)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.os.Looper.loop(Looper.java:130)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at android.app.ActivityThread.main(ActivityThread.java:3687)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at java.lang.reflect.Method.invokeNative(Native Method)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at java.lang.reflect.Method.invoke(Method.java:507)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
09-21 17:14:21.242: ERROR/AndroidRuntime(16511):     at dalvik.system.NativeStart.main(Native Method)

Please point out my mistake. Thanks

  • 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-11T21:51:25+00:00Added an answer on June 11, 2026 at 9:51 pm

    Finally i got solution for my issue.. Just delete the db in file explorer–>data/data/packagename/dbname. And run again. now it works fine.

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

Sidebar

Related Questions

for example i use following command to find a record SELECT `users`.`mail` FROM `users`
I use the following method to send out an object from a servlet :
For example, if i use following code to query some data from database. Uri
Following on from suggestions, I am trying to use List.GetItems(Query) to retrieve my initial
I have the following query: select id from table1 where some_func(?) = 1; where
I am trying to get the required result from the following query but it
I have the following MySQL query: $imgDimensions_query = SELECT imgWidth, imgHeight FROM ( SELECT
I use the following XPATH Query to list the object under a site. ListObject[@Title='SomeValue']
I use the following mysql query, DELIMITER $$ DROP PROCEDURE IF EXISTS `allied`.`aboutus_delete`$$ CREATE
I'm using Firebird 2.1. I could use some help creating the following query or

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.