objective c - sql returning values in a list -


i have sql database in xcode project, can read data no problem @ all. database has 15,000 rows 1 of columns has handful of different entries.

what want list of different options in list.

currently i'm reading entire database , if nsmuatablearray* doesn't contain feedback adding it.

is there anyway can create sql syntax, different values returned. seems current way seems waste of resources.

thanks

i'm using hermanns example:
if table has name example , field values "level x" has name useroptions. if want list of distinct values of column useroptions can use keyword distinct:

select      distinct useroptions     example; 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -