xcode - How to write like query in sqlite ,for iphone app -


i bit confused writing query in sample app iphone .i writing query below not help.i dont know wrong in query.

the str_id passing july here in db not saving whole word july need compare first 3 words in query(so cant use select * tbl month = jul ,so use "like" query )

        const char *sql = [[nsstring stringwithformat:@"select  tourid, tourname, firstname, lastname, notes, date, issale, image, solidamount, soliddate, ispaid salesdataentry month %@",str_id]utf8string]; 

hope clear question.

i think should check out nspredicate documentation, , introduction predicates programming guide


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -