I have following string
NSString *stmt = [NSString stringWithFormat
"INSERT INTO table (.....) VALUES (....), fields, values];
now i want to store this string into 'static char' variable as i want to insert some values into a table using sqlite3.
I am using following to convert string to 'const char'
const char *sql = [stmt UTF8String];
but i haven't get any idea to convert string to static char.
Any suggestion is acceptable.
Thanks in advance.
NSString *stmt = [NSString stringWithFormat
now i want to store this string into 'static char' variable as i want to insert some values into a table using sqlite3.
I am using following to convert string to 'const char'
const char *sql = [stmt UTF8String];
but i haven't get any idea to convert string to static char.
Any suggestion is acceptable.
Thanks in advance.