SQLite C++ Access Columns by Name -


From the column name instead of the index number in C / C ++ (such as C + + map) to reach the SQLIT result The way?

For example, Python allows access to SQLite access

  result = query ("select * from" table); Print result ['colname'] print result ['anothercol']  

Any similar methods available in C ++ for the interface of SQLite?

I want to go with Daniel to advise SAPPLI ++ - you can visit www.sqlapi.com Can find on Example is a simple example of a feature field with a bit verbose, so this is a code-only abstract:

  zero showmaps (sequenction * POCN, int minage) {Sackmonde CMD (POCN, " Select the name; Age of employees from the age is alive;; 1); CMD & lt; & Lt; Minage; Cmd.execute (); While (cmd.FetchNext ()) {SAString sName = cmd.Field ("name"); Long nag = cmd field ("age"); Printf ("name:% s, age:% d \ n", sName, nAge); }}  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -