Обсуждение: Insert/update a column if it doesnot exists in a database using C program

Поиск
Список
Период
Сортировка

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

От
madhu_d
Дата:
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.