Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Windows Azure移动服务选择查询问题。如何对同一列的多个值进行查询,而不是只对单个值进行查询?_Android_Azure_Azure Table Storage - Fatal编程技术网

Android Windows Azure移动服务选择查询问题。如何对同一列的多个值进行查询,而不是只对单个值进行查询?

Android Windows Azure移动服务选择查询问题。如何对同一列的多个值进行查询,而不是只对单个值进行查询?,android,azure,azure-table-storage,Android,Azure,Azure Table Storage,我正在使用android访问Windows azure数据库 我的qtn是如何基于单列但多个值进行查询以访问数据 这是我的密码: try { mClient = new MobileServiceClient(Constant.AZURE_URL, Constant.AZURE_API_KEY, getApplicationContext()); mUsersTable = mClient.getTable(Users.class);

我正在使用android访问Windows azure数据库

我的qtn是如何基于单列但多个值进行查询以访问数据

这是我的密码:

try {
            mClient = new MobileServiceClient(Constant.AZURE_URL, Constant.AZURE_API_KEY, getApplicationContext());
            mUsersTable = mClient.getTable(Users.class);        
             MobileServiceTable<Users> table = mClient.getTable(Constant.TABLE_USERS, Users.class);

                  table.where().field("id").eq(11)
                                .execute(new TableQueryCallback<Users>() {

                                    @Override
                                    public void onCompleted(List<Users> result, int count,
                                            Exception exception, ServiceFilterResponse response) {

                                        if (exception != null) {
                                            Log.d("Exception at complete::",""+exception.getCause().getMessage());

                                        } else {
                                            StringBuffer sb = new StringBuffer();
                                            for (Users users_obj : result) {
                                                System.out.println("NAMESS::::"+users_obj.getFirstName());

                                             //   userID_arr.add(users_obj.getFirstName());

                                            }

                                            //System.out.println("User Array"+userID_arr);

                                        }
                                    }
                              });           

               } catch (MalformedURLException e) {

            e.printStackTrace();
            Log.e("Error Mobile Service Authentication", "There was an error creating the Mobile Service. Verify the URL");

        }
         catch (Exception e) {
               e.printStackTrace();
         }
试试看{
mClient=新的MobileServiceClient(Constant.AZURE_URL、Constant.AZURE_API_密钥、getApplicationContext());
mUsersTable=mClient.getTable(Users.class);
MobileServiceTable=mClient.getTable(Constant.table\u USERS,USERS.class);
表.where().字段(“id”).eq(11)
.execute(新建TableQueryCallback(){
@凌驾
未完成公共无效(列表结果、整数计数、,
异常(ServiceFilterResponse响应异常){
if(异常!=null){
Log.d(“完成时异常::”,“”+Exception.getCause().getMessage());
}否则{
StringBuffer sb=新的StringBuffer();
用于(用户对象:结果){
System.out.println(“名称::”+users\u obj.getFirstName());
//userID_arr.add(users_obj.getFirstName());
}
//System.out.println(“用户数组”+userID\u arr);
}
}
});           
}捕获(格式错误){
e、 printStackTrace();
Log.e(“错误移动服务身份验证”,“创建移动服务时出错。请验证URL”);
}
捕获(例外e){
e、 printStackTrace();
}
因此,我能够根据表中的单个参数获得完整的行。其中().feilds.eq(11)。。。。。。。。。。。。。。。。。。。因此,我想在.eq()上添加动态值……在Android auzre中,在多id请求上获取值的方法是什么