如何在Android上将JSON_EXTRACT与ROOM一起使用?

时间:2018-04-18 08:46:42

标签: android sqlite

当我在Query中使用json_extract时出现错误

  

android.database.sqlite.SQLiteException:没有这样的功能:   json_extract(代码1)

空间是否支持json_extract功能?

这是我的疑问:

select sum(json_extract((select distinct replace(tfo.products, '\','')), '$[0].qty_case')) as QtyCase from tfo where strftime('%m', dateCreated) = strftime('%m', 'now', '0 months') and armstrong2CustomersId = 'OPDB00140428AU' and armstrong2TfoId = '9466c9d5-7d58-4d92-96e0-010662aa0055'

0 个答案:

没有答案
相关问题