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,
SQL Not Equal Operator: != When the expressions return different types of data, (for example, a string and a number), type conversion is performed. The SQL Not Equal comparison operator (!=) is used to compare two expressions. For example, 15 != 17 comparison operation uses SQL Not Equal operator (!=)
The SQL not equal operator is <>. You should specify this in a WHERE statement. This lets you select rows where a particular column's contents is not equal to the value you have specified. You can also use !=
<> means not equal to, != also means not equal to.
In SQL Server database, Equality Operator "=" is used to test for equality in a query. Use the following query to select the specific data where "name" = "Lily": SELECT * FROM [javatpoint].
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.
Update (20160828): I wrote a related answer today that shows how to detect the absence of a property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With