3

Can we execute Prepared statement(parametrised query) inside pqxx::pipeline, we can insert plain sql statement like:

SELECT * FROM table

but can we do something like given below

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

Thanks

twid
  • 6,368
  • 4
  • 32
  • 50

0 Answers0