SQLite 报错 unrecognized token: "xxxx"

报错信息

[SQLITE_ERROR] SQL error or missing database (unrecognized token: "6592396b51514879a53057efac3a503f")

报错原因

字符串字段没有加引号

解决方案

eg:

select * from ${tableName} where id = ${id}

应改为:

select * from "${tableName}" where id = "${id}"

猜你喜欢

转载自blog.csdn.net/qq_33833327/article/details/105786845