Hello. I'm a newbie to SQLite so I would really appreciate if someone could explain to me a few matters. Currently I'm writing a small and not complicated project in C++ and I decided not to use files to store my data but SQLite db. I've got stuck at getting the data from databse to program variables. Let's say I have a table persons in my db with fields: name (varchar), surname(varchar), something (float). And let's say I write a sql statement: select * from persons where name='some_name' and surname='some_surname'. The thing is I want to store all the data from the row in c++ variables so I can use them easily. How can I do that? I've read the SQLite manual - prepare v2 and step, but I don't really get it. I'm a kind of guy that have to see the code to fully understand the idea, so I would really appreciate if someone could write here examples in C++.
Thanks in advance, duro -- View this message in context: http://www.nabble.com/Fetching-the-values-from-database-in-C%2B%2B-tp21533471p21533471.html Sent from the SQLite mailing list archive at Nabble.com. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users