gpt4 book ai didi

android - 主动android选择查询

转载 作者:太空宇宙 更新时间:2023-11-03 11:00:58 25 4
gpt4 key购买 nike

new Select("id")
.From(customer)
.where("lastName=?","John")
.execute();

Error

 E/CursorWindow: Failed to read row 0, column -1 from a CursorWindow which has 1 rows, 1 columns.

Main query (select id from customer where lastName="John";)

最佳答案

尝试

List<Customer> results = new Select().from(Customer.class).where("lastName=?","John").execute();

if(results.size() > 0) {
long id = results.get(0).getId();
}

关于android - 主动android选择查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42946292/

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