modern C++ ORM, C++17, support mysql, postgresql,sqlite
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
ounie-os opened this issue a year ago · comments
struct person { int id; std::string name; int age; };
比如是这样的一个表,我想查询同时满足name='tom'和age=16两个条件。目前看到的query里面只有传一个查询条件。不知道多个查询条件可以吗?
mysql.query<person>("name='test1' and age=3") 这样就可以组合查询。where语句形式
mysql.query<person>("name='test1' and age=3")