????????????:
?????????????SELECT??????FMResultSet??nil?????????;

 

[db executeQuery:sql];
FMResultSet *rs = [db executeQuery:@"SELECT * FROM TableName"];
{
while ([rs next])
{
//???????????????????????
}
}


???????2???????SELECT??????????2??????????????BOOL??YES???????NO?????
????[db executeUpdate:sql];
?????????????
??????????????????????????????????????

 

[db beginTransaction];
//?????е????
[db commit];
FMResultSet *rs;
FMResultSet????????????????????????????????
????2.FMDatabaseQueue ??????????е????????????????????????
[FMDatabaseQueue *queue = [FMDatabaseQueue databaseQueueWithPath:path];
queue inDatabase:^(FMDatabase *db) {
//
}];
queue inTransaction:^(FMDatabase *db?? BOOL *rollback) {
//
}