Presently I am using the following code, but how do I retrieve the count after the statement is executed to see whether or not the table contains data?
NSString *sql2 = @"SELECT COUNT( * ) FROM myTable";
sqlite3_stmt *stmt2 = [Cn OpenSQL:[sql2 UTF8String]];
if (stmt2 != nil)
{
if(sqlite3_step(stmt2)){
NSLog(@"success")
}
else NSLog(@"err2: %@",sql2);
}