agora inbox for pgsql-interfaces@postgresql.org
help / color / mirror / Atom feedFrom: madhu_d <madhurima.das@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: Insert/update a column if it doesnot exists in a database using C program
Date: Sun, 6 Jul 2014 16:29:18 -0700 (PDT)
Message-ID: <1404689358939-5810684.post@n5.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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-us...
Sent from the PostgreSQL - interfaces mailing list archive at Nabble.com.
--
Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces
Message-ID: <1404689358939-5810684.post@n5.nabble.com>
Permalink: ../1404689358939-5810684.post@n5.nabble.com/
Also on: postgresql.org/message-id/1404689358939-5810684.post@n5.nabble.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: madhurima.das@gmail.com
Subject: Re: Insert/update a column if it doesnot exists in a database using C program
In-Reply-To: <1404689358939-5810684.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox