小编Mac*_*122的帖子

E/SQLiteLog:(1)无法识别的标记:“:”

我试图查询一个字符串,其中的值对应于 sqlite/android studio 中的 url 地址,但它不断抛出异常:

E/SQLiteLog: (1) unrecognized token: ":"
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.project, PID: 4525
    android.database.sqlite.SQLiteException: unrecognized token: ":" (code 1): , while compiling: SELECT  * FROM URLS_ITEMS WHERE title = Google AND url = http://www.google.com;
    #################################################################
    Error Code : 1 (SQLITE_ERROR)
    Caused By : SQL(query) error or missing database.
        (unrecognized token: ":" (code 1): , while compiling: SELECT  * FROM URLS_ITEMS WHERE title = Google AND url = http://www.google.com;)
    #################################################################
        at …
Run Code Online (Sandbox Code Playgroud)

java sqlite android exception android-sqlite

-1
推荐指数
1
解决办法
6202
查看次数

标签 统计

android ×1

android-sqlite ×1

exception ×1

java ×1

sqlite ×1