前端使用in查询出错
selectId 为字符串数组['1','2','3']
isok = await db.where(user_id == $cloudEnv_uid && _id in ${selectId}
).update({is_select:true})
isok = await db.where(user_id == $cloudEnv_uid && _id in “${selectId}”
).update({is_select:true})
以上都报 Identifier directly after number (1:40) 错误
在云端中的 JQL查询.jql 中测试上面的写法是可以的,不知是什么原因,请教各位大佬。
DCloud_uniCloud_WYQ
where的参数只是一个字符串,你可以看到实际拼接后的效果
2022-07-11 16:04
DCloud_uniCloud_WYQ
按照你上面的写法在.jql文件中也是不可能能运行的
2022-07-11 16:05
h***@qq.com
回复 DCloud_uniCloud_WYQ: 太坑了
2024-04-08 18:02