Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些数据,我想通过使用 mysql db 中的 in 子句一次得到结果;例如,我有一些数字,例如 97,87,73,100。我可以使用 sql likeselect * from stock where num in (97,87,73,100)来获取结果集。
select * from stock where num in (97,87,73,100)
但是我如何使用它mysql++来获取所有行?唯一返回我程序中的mysqlpp::StoreQueryResult第一行。
mysql++
mysqlpp::StoreQueryResult
非常感谢。