NSString *querySQL = [NSString stringWithFormat: @"SELECT address, phone FROM contacts WHERE name LIKE @0","%name.text%"];
答案 0 :(得分:0)
这个怎么样?
NSString *querySQL = [NSString stringWithFormat:@"SELECT address,phone FROM Contacts WHERE name LIKE '%@%%'", name.text];