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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -