I have a Table with 50,000 records (table has 8 columns). I need to display only 1st column on the Table. I need an array which contains all data from Table only from 1st column. How to use NSFetchRequest to get all record from 1st column of the Table using Core Data?
You need to use setPropertiesToFetch: method like
[request setPropertiesToFetch :[NSArray arrayWithObject:@"<#Attribute name#>"]];
e.g.,
[fetchRequest setPropertiesToFetch:[NSArray arrayWithObjects:@"ColName", nil]];
Refer link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With