Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I do not have any experience in writing the code for sql databases in C++.

So what I wanted was, to Open a sqlite DB, and read all the contents in a specified Table in the DB, and then store the contents into Array or Vector so that I can use them later.

Please let me know how do I accomplish this.
Posted
Comments
nv3 29-Mar-15 3:12am    
You will come across thousands of such situations in your programming life. In such cases look for a users guide or tutorial online and just do what is shown in there. It is the first sign of professional behavior if you read the manual(s) or documentation before asking anyone for further help.

1 solution

See http://www.sqlite.org/docs.html[^] for documentation, and simple sample code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900