java - Azure 移动设备作为存储

标签 java android azure

我正在使用 azure 移动服务作为我正在开发的 Android 应用程序的存储平台。如何从一个月或更短时间的表中选择数据?这是我想要将该功能添加到的查询:

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

最佳答案

此查询选择县列等于 Kildare South 且日期列中的月份等于 March(03) 的行。所以它应该是:

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

关于java - Azure 移动设备作为存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36135159/

相关文章:

java - 设置应用程序在前台运行

Azure 本地 git - 部署 Node.js 应用程序时出现问题

Java 数组 - NullPointerException

android - Google 反向地理编码并不总是返回 street_address

java - 如何将我的 okhttp 响应转换为 Class 或 List<ClassName>?

php - 没有通过给定 ID 从 MySQL 检索到 android listView 的数据

c# - 即使管理员已同意,也会触发 ADAL 用户同意

azure - 使用 cli 枚举 Azure 服务主体

java - Google 集合框架中最常用的类是什么?

GUI 中的 Java bean 绑定(bind)