私は FMDB を使用しています。私は次のコードを実行している
FMResultSet *results = [database executeQuery:@"select * from customer"];
while([results next])
{
Customer *customer = [[Customer alloc] init];
customer.customerId = [results intForColumn:@"id"];
customer.firstName = [results stringForColumn:@"firstname"];
customer.lastName = [results stringForColumn:@"lastname"];
[customers addObject:customer];
NSLog(@"%d", customer.customerId);
}
しかし、私はcustomerIdの価値を得ていません。私はちょうど自動的にインクリメントされるROWIDをしたい。
親切に何かを提案する...