我如何从firebase获取swift3中值等于某个值的数据。在MySQL中将是"SELECT*FROMusersWHEREtype='brown'";我如何在Firebase中编写where部分?我有这个数据库我想从month==currentMonth中获取所有数据(我有一个currentMonth变量) 最佳答案 您可以像这样查询:letref=Database.database().reference()ref.child("Budget").queryOrdered(byChild:"Month").queryEqual(