例子:FMResultSet *s = [db executeQuery:@"SELECT COUNT(*) FROM myTable"];if ([s next]) { int totalCount = [s intForColumnIndex:0];}