Passing C++ variables to MySQL query
Posted on 2004-11-03
Hi, does anybody know how to pass C++ variables to MySQL query.
mysql_query(connection,"update table set column = y");
The update will fail since "y" is not recognized as a C++ variable
how should I modify the above statement so that "y" could be interpreted as "6"?