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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -