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

From: madhu_d <madhurima(dot)das(at)gmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Insert/update a column if it doesnot exists in a database using C program
Date: 2014-07-06 23:29:18
Message-ID: 1404689358939-5810684.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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.

Browse pgsql-interfaces by date

  From Date Subject
Next Message frank ernest 2014-07-15 15:36:24 C where are oids defined?
Previous Message Pavel Golub 2014-07-03 12:27:49 Re: libpq single-row mode performance