objective c - iPhone Dev - Trying to access every row of a sqlite3 table sequentially -


this first time using sql @ all, might sound basic. i'm making iphone app creates , uses sqlite3 database (i'm using libsqlite3.dylib database importing "sqlite3.h"). i've been able correctly created database , table in it, need know best way stuff it.

how go retrieving information in table? it's important able access each row in order in table. want (if helps) info various fields in single row, put 1 object, , store object in array, , same next row, , next, etc. @ end, should have array same number of elements have rows in sql table. thank you.

my sql rusty, think can use select * mytable , iterate through results. can use limit/offset(1) structure if not want retrieve elements @ 1 table (for example due memory concerns).

(1) note can perform unexpectedly bad, depending on use case. here more info...


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -