I have an app that takes input from a text field and puts it into a string. I have a table with a field in it that I want to check the value of the string from the input against the value in the field in the database. I’m new to iOS and fairly new to SQLite. Here’s what I have:
NSString *strStoreNumber;
strStoreNumber = StoreNumber.text; // StoreNumber is the text field
querystring = [NSString stringWithFormat:@"SELECT string FROM tblStore WHERE string = ;"];
After “WHERE string = ” I want it to check the value of strStoreNumber against the value in the “string” field in the database. Please let me know if this is not clear enough. Thanks!
this is about string creation:
More details on String Format Specifiers.