Can anyone show me few examples on passing variable values to query parameters??? I've tryed to search anything on google, but there is nothing useful. To be more specific I need examples with libpq library, wich meens I need code in C programming language. I've tryed examples from PostgreSQL source, but they also does not work! What I've learned is that I have to use PQexecParam... I need query wich will insert some data in postgresql database, but with 7 query parameters wich are variables (integers).
If someone know's hot to help, I will be gratefull!