gpt4 book ai didi

android - 如何将 String 与 SELECT 结果进行比较?

转载 作者:行者123 更新时间:2023-11-29 00:36:39 24 4
gpt4 key购买 nike

我用的方法

rawQuery("select * from schedule where week = ? and firstweek < ? and lastweek > ?", new String[]{weekday})

位置“?”是字符串,如何与Select语句进行比较?

最佳答案

给定查询需要三个参数,再向字符串数组添加两个:

new String[]{weekday, new Date(), new Date()}

关于android - 如何将 String 与 SELECT 结果进行比较?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12277762/

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