(Totally new to C++. Coming from python.)
Vector of names: namelist, vector of stats: statlist. Each name is a mysql table and each stat is a column in that table.
for (unsigned int i = 0; i < namelist.size(); i++)
{
for (unsigned int j = 30; j < statlist.size(); j++)
{
string selectcolumn = "SELECT %s FROM %s.%s", statlist, statlist, namelist;
const char* c = selectcolumn.c_str();
qstate = mysql_query(conn, c);
}
}
(I don't expect people to do this for me I just need some guidance/advice. ANY help is really appreciated!)
Each column row will be ranked by percentile then split into groups by 10 and put into another table.
- How do I correctly associate variables to %s string in the loop here?
- Do I need to dynamically generate a vector for each column as I select it?
- Once I select a table column do I need to use a while loop?