sqlite3_stmt *statement;
selectSql = "SELECT title FROM list";
sqlite3_prepare_v2(database, selectSql, -1, &statement, NULL);
countColumn = sqlite3_column_count(statement);
NSLog(@"%d",countColumn);
爲什麼會發生這種計數始終返回1
事實上,表中有18條記錄sqlite3_column_count始終返回1
NSLog(@「%d」,countColumn); ? – janusbalatbat 2012-03-13 10:15:17
@sunajledif NSLog(@「what ?!」); – Jake 2012-03-13 10:17:44
@notreallyJake NSLog(@「%d」,countColumn); ? ,他NSLogging的信息columnCount,就在我的第一個評論是個問號,我想你沒有注意到它:) – janusbalatbat 2012-03-13 10:23:49