Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.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
Azure查询在不应进行iOS7编程时返回所有行_Ios_Azure - Fatal编程技术网

Azure查询在不应进行iOS7编程时返回所有行

Azure查询在不应进行iOS7编程时返回所有行,ios,azure,Ios,Azure,因此,我用我提供的帐号查询数据库中的所有行,但它仍然在表视图中显示数据库中的所有行,而不管我传递给哪个用户 我已经看了很长一段时间了,我不太清楚为什么它不起作用,提前感谢您的帮助 MSTable *itemTable = [client tableWithName:@"Users"]; NSString *queryString = [NSString stringWithFormat:@"account=%@",activeAccount.userID]; NSLog(@"%@", query

因此,我用我提供的帐号查询数据库中的所有行,但它仍然在表视图中显示数据库中的所有行,而不管我传递给哪个用户

我已经看了很长一段时间了,我不太清楚为什么它不起作用,提前感谢您的帮助

MSTable *itemTable = [client tableWithName:@"Users"];
NSString *queryString = [NSString stringWithFormat:@"account=%@",activeAccount.userID];
NSLog(@"%@", queryString);  //this outputs "account=B51578B1-8A73-42BA-87B4-4F26E401222A" 
                            //which is correct
[itemTable readWithQueryString:queryString completion:^(NSArray *items, NSInteger totalCount, NSError *error)
 {
     [self.usersArray removeAllObjects];
     for (NSDictionary *item in items)
     {
         User *user = [[User alloc]init];

         user.account = [item valueForKey:@"account"];
         user.name = [item valueForKey:@"name"];
         user.pay = [item valueForKey:@"pay"];
         user.job = [item valueForKey:@"job"];

         [self.usersArray addObject:user];
     }
     [self.tableView reloadData];
 }];

主键肯定有问题
这个问题似乎与如何在表中存储数据有关…

我想说的是关系模型
否则一切都会正常运行

什么不正常?类似这样的。。。从account=“123”所在的表中选择*;