Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问 query 如何绑定多个 param #5

Open
CoffeeCodex opened this issue Jun 2, 2020 · 1 comment
Open

请问 query 如何绑定多个 param #5

CoffeeCodex opened this issue Jun 2, 2020 · 1 comment

Comments

@CoffeeCodex
Copy link

就假如
"select * from test where id=? and CreateTime=?"
怎么把这两个参数传进去呢?

@znone
Copy link
Owner

znone commented Jun 9, 2020

db.query("select * from test where id=? and CreateTime=?", std::make_tuple(id, time), ...);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants