Re: mySQL in C++
Posted by: B A
Date: August 23, 2011 10:24AM

in this code:
query_state = mysql_query(connection, "select * from cplpl");

if I wanted to replace cplpl by a variable in my C++ program, how do I do it?

basically, I've created
string tblnm="cplpl";

but then if I write
query_state = mysql_query(connection, "select * from tblnm");
it looks for the table tblnm.

Is there a way I can fix this? thx!

Options: ReplyQuote


Subject
Views
Written By
Posted
1101
B A
August 11, 2011 01:47PM
661
August 11, 2011 02:05PM
628
B A
August 11, 2011 02:20PM
Re: mySQL in C++
644
B A
August 23, 2011 10:24AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.