How to connect postgresql to C ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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???

13th Jun 2020, 1:38 AM
Pratik Thakur
Pratik Thakur - avatar
2 Réponses
+ 1
Ahem, starting with the basic.... your database is started and running, right?
13th Jun 2020, 5:24 AM
ifl
ifl - avatar
0
Yes my database has started and is running
13th Jun 2020, 5:50 AM
Pratik Thakur
Pratik Thakur - avatar