I'm trying to write a simple sqlite query in c++ using visual studio 2010. My problem is that i can't use a c++ variable inside that query. I was not able to find the right syntax.
sqlite3_prepare_v2(handler, "SELECT * FROM grammateas WHERE username==X;", -1, &statement, 0);
where X i would like to use a variable.
In php and mysql is very simple, but here things are more complicated!
Τhanks in advance.