iOS?е??????????FMDB
???????????? ???????[ 2016/5/31 9:52:46 ] ????????iOS ?????
???????????????????????????????????
????1????????SQLite????????·????????FMDatabase????
??????1??FMDatabase *db = [FMDatabase databaseWithPath:path];
????if (![db open]) {
????NSLog(@"??????????");
????}
????2?????·??path?????????
??????1?????????·??
?????????????????????
??????2?????????@""
????????????????????????????
??????FMDatabase???????????????????????
??????3??nil
??????????????????????????FMDatabase???????????????????
??????????2?????FMDatabase??
????1????FMDB?У??????????????в??????????“????”
????create??drop??insert??update??delete??
????2????? executeStatements (?????????ж???SQL???)
????- (BOOL)executeStatements:(NSString *)sql
????- (BOOL)executeStatements:(NSString *)sql withResultBlock:
????3?????executeUpdate(?????????SQL????????????SQL???????)
????- (BOOL)executeUpdate:(NSString*)
????- (BOOL)executeUpdateWithFormat:(NSString*)format
????- (BOOL)executeUpdate:(NSString*)sql withArgumentsInArray:(NSArray *)arguments
???????
????[db executeUpdate:@"UPDATE t_student SET age = ? WHERE name = ?;"?? @20?? @"Jack"]
?????塢??в????FMDatabase??
????1?????????
????- (FMResultSet *)executeQuery:(NSString*)sql
????- (FMResultSet *)executeQueryWithFormat:(NSString*)format
????- (FMResultSet *)executeQuery:(NSString *)sql withArgumentsInArray:(NSArray *)arguments
???????
????// ???????
????FMResultSet * rs = [db executeQuery:@"SELECT * FROM t_student"];
????????????FMDatabaseQueue
????1?????Щ??????в????????????
??????1??- (void)inDatabase:(void (^)(FMDatabase *db))block
??????2??- (void)inTransaction:(void (^)(FMDatabase *db?? BOOL *rollback))block ????д?????FMDatabase???????????????????????
????2????????????????
??????1???????????????
??????2??????????
????rollBack.memory = true
???????????FMResultSet?????
????1???Щ????Χ??“Column”???????????????н??в????????????????????????
objectForColumn:
intForColumn:
longForColumn:
longLongIntForColumn:
boolForColumn:
doubleForColumn:
stringForColumn:
dateForColumn:
dataForColumn:
dataNoCopyForColumn:
UTF8StringForColumnIndex:
????2??next???ж??????????????????
??????1???????????
????while ([rs next]) {
????NSString *name = [rs stringForColumn:@"name"];
????int age = [rs intForColumn:@"age"];
????double score = [rs doubleForColumn:@"score"];
????}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
?????????????????????????Щ????????????????????TC???????????????Щ???????????????????????????????????????????????(java .net ?????)???mysql???????????????????ж????д???Python???????????????(DB2)??????BufferPool????????????????????????????????6??????????????????滮???????????????-????????SQL Server???????????????????λ?????PHP??SQL????????????????????Pythonд???NoSQL????????? SQL ?е????????????? SQL ?е?????????Java???????:?????MySQL???????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????