i have a requirement of retrieving specific amount of records from sqlite database at a time, now in this query i am trying to retrieve 0 to 20 records from database, but its not working, plz. tell me what i am doing wrong, here is my query
NSString *sqlStr = [NSString stringWithFormat:@"SELECT * FROM Apns ORDER BY NotificationMessage LIMIT '%d', '%d'",a,b];
const char *sql = [sqlStr UTF8String];
here a is an integer containg 0 and b also an integer containing 20 in it (a and b can contain different values other than 0 and 20 according to user wish or requirement). i want to fetch these record and dispaly them in a table view but that query is not working please guide me in this, thanx and Regards. Saad
Perhaps the
'is wrong.