sqlite3_stmt *statement;
selectSql = "SELECT title FROM list";
sqlite3_prepare_v2(database, selectSql, -1, &statement, NULL);
countColumn = sqlite3_column_count(statement);
NSLog(@"%d",countColumn);
why does this count always return 1
In fact,table has 18 records
It is one because your statement only
selects one column (title). Try this and see what it returns: