Connect to PostgreSQL from C++ (gcc)
How I can to connect Po开发者_开发问答stgreSQL in a console C++ programm, which header files I must to include etc?
This is official documentation of libpq.
http://www.postgresql.org/docs/8.1/static/libpq.html
You can try third-party C++ libraries for database connectivity like SOCI
精彩评论