是否有可能查询不等于指定条件的数据? [英] is it possible query data that are not equal to the specified condition?

查看:22
本文介绍了是否有可能查询不等于指定条件的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的列表视图 (android) 获取用户列表,我使用 firebaselistadapter 来备份我的列表视图,我想显示除我之外的用户数据.像一个 sql 查询 Select something from usertable where id!=userid;

Am fetching list of users for my listview (android) i used firebaselistadapter to backing up my listview , I wanna show users data except mine . Like an sql query Select something from usertable where id!=userid;

我想获取所有其他用户的数据,

i wanna fetch all other users data,

推荐答案

Firebase 目前仅提供了一种根据特定值的存在包含 节点的方法.您不能根据值的存在排除节点.

Firebase currently only offers a way to include nodes based on the presence of a certain value. You cannot exclude nodes based on the presence of a value.

更新 (20160828):我今天写了一个相关的答案,展示了如何检测属性的缺失.

Update (20160828): I wrote a related answer today that shows how to detect the absence of a property.

这篇关于是否有可能查询不等于指定条件的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆