nsstring *sql = [nsstring stringwithformat:@"create table if not exists '%@' ('%@' text primary key, '%@' text);", tablename, field1, field2];
i faced quite lot of problems line of programming, can me solve problem? i'm new xcode. thanks! :)
try without single quotes
sstring *sql = [nsstring stringwithformat:@"create table if not exists %@ (%@ text primary key, %@ text);", tablename, field1, field2];
Comments
Post a Comment