I have a problem while accessing MySQL database from a C++ program. Can anyone help me
We execute query as:
mysql_query(conn,"SELECT * FROM employee");
where conn is the MYSQL *, and employee is the table name.
If we have department in char *dept. Then how can we put the pointer value in the query?
For example if we want to execute the following query how will we do it:
SELECT Names FROM employee WHERE Department = 'IT';
And IT is stored in char *dept.
Any help will be appreciated.
And may all u have a very Happy New Year.