gpt4 book ai didi

android - SQLite 查询 : between

转载 作者:行者123 更新时间:2023-11-29 23:20:37 26 4
gpt4 key购买 nike

我在我的 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 查询 : between,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54371198/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com