Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法以字符串来查询,使用汉字查询,发现查询不出来 #21

Closed
wuyaomin opened this issue Jun 12, 2016 · 1 comment
Closed

Comments

@wuyaomin
Copy link

wuyaomin commented Jun 12, 2016

User *user = [[User alloc] init];
user.name = @"zhangsan";
[user save];

NSString *ttString = [NSString stringWithFormat:@" WHERE name = %@ ",@"zhangsan"];
User *checkUser =[User findFirstByCriteria:ttString];

@wuyaomin
Copy link
Author

擦,我自己犯的错误,这个错误低端了 NSString *ttString = [NSString stringWithFormat:@" WHERE name = ‘%@’ ",@"zhangsan"];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant