if
sqlite3_close(database);
NSAssert(0,@"open database faild!");
}
char
NSString
sqlite3_exec(database,[createsql
sqlite3_close(database);
NSAssert1(0,@"create table %@ faild",TableName);
NSAssert1(@"the error is %s",erroMsg);
}
NSString
NSLog(@"%@",insertUser);
sqlite3_exec
{
NSAssert1(
}
User *user = [[User
sqlite3_stmt
sqlite3_prepare_v2(database,[countsql
while
user.
name@"%s"sqlite3_column_text1 user.age =[2 user.sex = [3)];
}
sqlite3_finalize(statement);
return
}
希望对大家有用:sqliteDEMO