How to connect postgresql to C ? | Sololearn: Learn to code for FREE!

0

How to connect postgresql to C ?

I am trying to connect postgresql database with my C program using libpq.h header file . I have written the code but it gives me error that Error: There is no connection to back end. Can anyone help me with this???

6/13/2020 1:38:16 AM

Pratik Thakur

2 Answers

New Answer

+1

Ahem, starting with the basic.... your database is started and running, right?

0

Yes my database has started and is running