Insert/update a column if it doesnot exists in a database using C program

madhu_d <[email protected]> Sun, 6 Jul 2014 16:29:18 -0700 (PDT)
Newsgroups gmane.comp.db.postgresql.interfaces
Message-ID <[email protected]>
I am a newbie in writing C programs to read postgresql database. 

I am writing a C program to insert two new columns to a table if they don't
exist. If they exists, then simply update it. 

I found a solution in the link:
http://stackoverflow.com/questions/12597465/how-to-add-column-if-not-exists-on-postgresql
but have no clue to implement it in a C program. Can anyone suggest a way to
implement it.. 




--
View this message in context: http://postgresql.1045698.n5.nabble.com/Insert-update-a-column-if-it-doesnot-exists-in-a-database-using-C-program-tp5810684.html
Sent from the PostgreSQL - interfaces mailing list archive at Nabble.com.


-- 
Sent via pgsql-interfaces mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces