2016-03-21 47 views
1

我正在使用azure移動服務作爲我正在開發的Android應用的存儲平臺。如何從一個月或更少的表中選擇數據?這是我想這個功能添加到查詢:Azure手機作爲存儲

final MobileServiceList<Crime> assaultNum = mToDoTable.where().field("county").eq(countyString).execute().get(); 

回答

1

此查詢選擇行所在縣列等於基爾代爾南部和日期列當月等於遊行(03)。所以它應該是:

final MobileServiceList<Crime> assaultNum = mToDoTable.where().field("county").eq("Kildare South") 
         .and().month("date").eq(03).execute().get();