[英]I am able to aply firebase realtime database query for on variable on value i want to apply query for two values to the same variable
I am able to apply firebase realtime database query for on variable on value I want to apply query for two value to the same variable我能够对值上的变量应用 firebase 实时数据库查询 我想对同一个变量应用两个值的查询
Query query = FirebaseDatabase.getInstance().getReference().child("Spot").child(country).orderByChild(viewCate).equalTo(set_query);
I want to list both data setquery="Burger"
and data setquery="Piza"
but not data setquery="Noodles"
我想同时列出 data
setquery="Burger"
和 data setquery="Piza"
但不列出 data setquery="Noodles"
Unfortunately, there's no way out here to query both Burger
and Piza
at the same time.不幸的是,这里没有办法同时查询
Burger
和Piza
。
For such cases, you have to query twice, once with burger
and second time with Piza
and then merge both results in your code manually.对于这种情况,您必须查询两次,一次查询
burger
,第二次查询Piza
,然后手动将两个结果合并到您的代码中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.