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

Поиск
Список
Период
Сортировка
От madhu_d
Тема Insert/update a column if it doesnot exists in a database using C program
Дата
Msg-id 1404689358939-5810684.post@n5.nabble.com
обсуждение исходный текст
Список 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.



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Pavel Golub
Дата:
Сообщение: Re: libpq single-row mode performance
Следующее
От: "frank ernest"
Дата:
Сообщение: C where are oids defined?