I have an issue with inserting a value into table by FMDB. I have SQL string like this:
NSString *sql = [NSString stringWithFormat:@"INSERT INTO table( COMPANY, PAGE_NO ) VALUES ('%@',%d,%d)",value1,value2,value3];
And I use FMDB like this for SQL string above:
[FMDatabase: 0x433e80> executeUpdate: sql]
It works, but when I use value1 = @"Test'12"
. It has a character " ' "
and it fails.
Please help me, I want to keep using the method executeUpdate
from FMDB
Thanks