0

Team,

Can you please help me to understand why I m getting the following exception.

05-07 10:57:20.652: ERROR/AndroidRuntime(470): android.database.sqlite.SQLiteException: near "1": syntax error: , while compiling: SELECT Id,Name FROM act WHERE Id 1-IJUS-1

Thanks in advance,

1
  • can you please copy and paste the code you are using, i didnt get any information from the error statement. Commented May 7, 2010 at 6:11

1 Answer 1

1

Your SQL is invalid. You may be missing an equals sign and some quotation marks around the value:

SELECT Id,Name FROM act WHERE Id="1-IJUS-1"

However, without knowing your table structure, it is difficult to know for certain. The SQLite documenation is freely available online for more on how to construct a SQL query.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.