SQLite 查询:介于
SQLite query: between
我在我的 Android 应用程序中使用 SQLite,我想在我的数据库中搜索。
我的查询和错误是这样的:
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)
有人知道问题出在哪里吗?
BETWEEN 运算符的语法是 test_expression BETWEEN low_expression AND high_expression
。所以在 AND
.
中更改 TO
我在我的 Android 应用程序中使用 SQLite,我想在我的数据库中搜索。
我的查询和错误是这样的:
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)
有人知道问题出在哪里吗?
BETWEEN 运算符的语法是 test_expression BETWEEN low_expression AND high_expression
。所以在 AND
.
TO