There are times when you need to execute a series of SQL statements in order to achieve data consistency. For example, a customer is going to transfer his money from bank account to settle a bill payment. We will need to update both customer bank account and payee account accordingly. Failure to update either custormer......
[ Click to Continue ]Category "PostgreSQL"
In this tutorial, i’ll demonstrate an example on how to connect to PostgreSQL database using gcc in linux. Also, i’ll demonstrate some basic SQL execution in the C++ example so that it give better understading to you how all of these are working. If you are looking a tutorial for windows platform, you could visit......
[ Click to Continue ]In this article, I’ll show you an example on how to integrate the PostgreSQL C++ library into your C++ project solution. The PostgreSQL version that i am using for this example is PostgreSQL for Windows version 8.4.4. In case you don’t have PostgreSQL installed on your machine, you can download it at postgresql-8.4.4-1-windows.exe. You may......
[ Click to Continue ]
Using Transcation in C++ PostgreSQL Example