I would like to know how do I copy column from one table to another another table using mysql database connection?
My code is like this:
string insert_query = "insert into customer_info (Customer Name, Price) Select name,price from medicine_tb where id = '"+storeid[j]+"'";
const char* qu = insert_query.c_str();
qstate = mysql_query(conn, qu);
But it is NOT working!