摘要:
@implementation AlertViewTestViewController /* Tasks Creating Alert Views – initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles: Setting Properties delegate property title property message property visible property Configuring But... 阅读全文
摘要:
2,代码中的操作:那么接下来是代码了。1 首先获取iPhone上sqlite3的数据库文件的地址NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);NSString *documentsDirectory = [paths objectAtIndex:0];NSString *path = [documentsDirectory stringByAppendingPathComponent:@"database_name"];2打开i 阅读全文
摘要:
1、判断数据库是否存在,如果存在rc!=0 否则==0 ,同时数据库不存在的话也不会创建caen.db3, 此处与sqlite3_open不用! =》rc = sqlite3_open_v2("caen.db3", &db, SQLITE_OPEN_READWRITE, NULL);2、判断数据库中某个表的存在,如果sql执行成功zErrMsg=NULL,否则给出错误信息:no sucn table:表名 char *zErrMsg ; char *sqls="SELECT * FROM BaseInfo"; char *datatable; i 阅读全文