Hi, c++ newb, here, fluent in PHP and MySql but having a hard time getting started with c++ and sqlite...
I've created a table in sqlite with two rows and insert some data (values)
First thing I noticed was when I closed sqlite and restarted it, the table was no longer there *mind blown* so obviously I'm really clueless if I don't know why this is happening right? Any help with that, thanks!
Secondly, assuming I do get the hang of creating tables, I have some rather large MySql tables I'll be figuring out how to import soon, how then, do I access that table using c++? I got this so far...
1 2 3 4 5 6 7 8 9 10 11
|
#include <iostream>
using namespace std;
int main ()
{
//Connect to sqlite database
// Do something with the data
}
|
So, as you can see I just need to know how to access said database and then how to specifically, select * from saidTable and while there is a result do some stuff, the stuff part I can figure out.
Sorry to be such a newb, but any help and links in the right direction would be greatly appreciated! Thanks!! Great forum you have here, I'll contribute just as soon as I'm able.