查一下FMDB的文档,里面有这一个例子:[quote]FMResultSet *s = [db executeQuery:@"SELECT COUNT(*) FROM myTable"];if ([s next]) { int totalCount = [s intForColumnIndex:0];}[/quote