So, exactly what the title says. I would like to use a query like this:
NSString *querySQL = [NSString stringWithFormat:@"SELECT COUNT (*) FROM Devices WHERE Location LIKE '%@%'", name];
Basically it asks SELECT COUNT (*) FROM Devices WHERE Location LIKE 'N%'. Then I would like to find all the computers in Building N, including all subzones (e.g. N33).
The question arises: how to insert% -sign into the request? Currently it only shows 'N'...
source
share