2011-02-03 32 views

回答

0

下面是查询代码,

sqlite3_stmt *selectStml=nil; 
const char *sql_qry = "select * from tableName"; 
if(sqlite3_prepare_v2(database, sql_qry, -1, &selectStml, NULL)!=SQLITE_OK){ 
    NSAssert1(0,@"Error while creating update statement for store. '%s'",sqlite3_errmsg(database)); 
} 
sqlite3_bind_text(selectStml, 1, [[[aryRecord objectAtIndex:i] objectAtIndex:0] UTF8String], -1, SQLITE_TRANSIENT);