【发布时间】:2019-01-25 18:47:05
【问题描述】:
我在我的 Android 应用中使用 SQLit,我想在我的数据库中搜索。
我的查询和错误是这样的:
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
near "to": syntax error (code 1): , while compiling:
select * from informations where house_type = 'آپارتمانی' and room_count = '1' and (cost between 0 to 100000000) and (area between 0 to 1000)
有人知道是什么问题吗?
【问题讨论】:
-
如果您无法让 SQLite 查询正常工作,它通常有助于消除变量,例如编程语言和环境的其他部分。为此,我喜欢使用 SQLite 命令行工具的最小环境。通过提供的
.dump命令,它还有助于为 StackOverflow 制作一个好的minimal reproducible example。