开发者

android : SQL Exception while querying

开发者 https://www.devze.com 2022-12-29 05:34 出处:网络
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:

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: , wh开发者_Python百科ile compiling: SELECT Id,Name FROM act WHERE Id 1-IJUS-1

Thanks in advance,


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消