Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- #include <pqxx/pqxx>
- using namespace std;
- int main() {
- string connection_inf = "host=127.0.0.1 port=5432 dbname=test user=postgres password=";
- pqxx::connection con(connection_inf);
- pqxx::work wrk(con);
- pqxx::result out = wrk.exec("SELECT * FROM tbl_ip");
- wrk.commit();
- }
Add Comment
Please, Sign In to add comment