pqxx :: pipeline是否支持预处理语句

时间:2014-09-25 16:25:03

标签: c++ sql postgresql libpqxx

我们可以在pqxx::pipeline内执行Prepared语句(参数化查询), 我们可以插入普通的sql语句,如:

SELECT * FROM table

但我们可以做下面给出的事情

pqxx::connection c;
c.prepare("SELECT_QUERY", "SELECT * FROM table");
pqxx::work w(c);
pqxx::pipeline p(w);
w.insert("SELECT_QUERY");
w.complete()

由于

0 个答案:

没有答案