objective c - putting a string in a char to an sql statement? -



objective c - putting a string in a char to an sql statement? -

i using xcode ,and have question in objective c ,maby can help me .

my function gets string, takes , set sql statement , , not sure how because statement char, , found many ways convert it.

i :

sql_for_event= " select basic_pic,spritesheet,sound database when event= %c",[awaking_event utf8string] ;

when sql_for_event statement, , awaking_event nsstring function. how can ?

thanks lot .

the %c specifier prints single char , need part of sprintf phone call scenario. easier way be

sql_for_event= [[nsstring stringwithformat:@"select basic_pic,spritesheet,sound database event= '%@'",awaking_event] utf8string];

objective-c xcode

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -