10
executeQuery:SELECT * ...
의 FMDB 결과를 사전에 쉽게 가져올 수 있습니까?사전에 FMDB 결과 집합
FMResultSet *appointmentResults = [[DataClass getDB] executeQuery:@"SELECT * FROM Appointments WHERE date = ?",currDateString];
while ([appointmentResults next]) {
//Create dictionary
//Add dictionary to array for later use
}
사전 키 열 이름과 값을 열 값으로 만들 수있는 방법이 있는지 궁금합니다. 가급적이면 모든 행을 반복 할 필요없이.
굉장! 이거 어디서 났니? FMDB documentation resultDict를 보면 거기에 없습니다. – Bot
@jostster 그것은'FMResultSet.h'에 있습니다. –
'-resultDict'는 더 이상 사용되지 않으며 대신'-resultDictionary'를 사용하십시오. – lucianf