below is part of my code,
...
char hashvalue[]="somehash"; // or i can use std::string
SQLCHAR* query = (SQLCHAR*)"SELECT username FROM users WHERE hash = ..." ;
SQLExecDirectA( hStmt, query, SQL_NTS );
...
In the code above I have no idea how to insert into query hashvalue to execute my query like this:
SQLCHAR* query = (SQLCHAR*)"SELECT username FROM users WHERE hash = "somehash"" ;
I 'm very new to sql, thanks in advance for help.
std::stringand bask in the glory of overloaded operators.