更新 '3.6.cpp'
This commit is contained in:
parent
19a03e3e29
commit
fa36995896
21
3.6.cpp
21
3.6.cpp
@ -89,6 +89,13 @@ int main()
|
|||||||
|
|
||||||
conn.exec("use bigdata5",nullptr);
|
conn.exec("use bigdata5",nullptr);
|
||||||
fn1(sqlcmd);
|
fn1(sqlcmd);
|
||||||
|
|
||||||
|
ostr.str("");
|
||||||
|
ostr<<"select count(*) from pages where title like '%"<<langs[i][j]<<"%' ";
|
||||||
|
sqlcmd=ostr.str();
|
||||||
|
|
||||||
|
conn.exec("use bigdata2",nullptr);
|
||||||
|
fn1(sqlcmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,7 +162,19 @@ int main()
|
|||||||
{
|
{
|
||||||
res.stepRow([&](char** val,unsigned long* len)
|
res.stepRow([&](char** val,unsigned long* len)
|
||||||
{
|
{
|
||||||
cash_pack pk=ParseCash(val[0]);
|
cash_pack pk=ParseCashX(val[0]);
|
||||||
|
cashmp[vec[i].first].push_back(pk);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
ostr<<"select salary from pages where title like '%"<<langs[idx][j]<<"%' ";
|
||||||
|
sqlcmd=ostr.str();
|
||||||
|
conn.exec("use bigdata2",nullptr);
|
||||||
|
conn.exec(sqlcmd,[&](MySQLResult& res)
|
||||||
|
{
|
||||||
|
res.stepRow([&](char** val,unsigned long* len)
|
||||||
|
{
|
||||||
|
cash_pack pk=ParseCashX(val[0]);
|
||||||
cashmp[vec[i].first].push_back(pk);
|
cashmp[vec[i].first].push_back(pk);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user