Re: [GENERAL] conditional IF statements in postgresql

2014-07-08 Thread Pujol Mathieu
Le 07/07/2014 18:28, Madhurima Das a écrit : Hi Pujol, Thanks a ton for your help!! I was missing the semicolon and it works fine now.. Thanks, Madhurima On Mon, Jul 7, 2014 at 11:09 AM, Madhurima Das mailto:madhurima@gmail.com>> wrote: I just checked that anything after the line

Re: [GENERAL] conditional IF statements in postgresql

2014-07-07 Thread Andy Colson
On 7/6/2014 10:47 PM, David G Johnston wrote: madhu_d wrote Hi, I am writing a C program to access a PostgreSQL database, where I add a column if it doesn't exists in the table or, update the column, if the column already exits. Please suggest how to work with the conditional statements. Th

Re: [GENERAL] conditional IF statements in postgresql

2014-07-07 Thread Pujol Mathieu
Le 07/07/2014 13:44, Pujol Mathieu a écrit : Le 07/07/2014 12:48, Albe Laurenz a écrit : Madhurima Das wrote: I am writing a C program to access a PostgreSQL database, where I add a column if it doesn't exists in the table or, update the column, if the column already exits. Please suggest ho

Re: [GENERAL] conditional IF statements in postgresql

2014-07-07 Thread Pujol Mathieu
Le 07/07/2014 12:48, Albe Laurenz a écrit : Madhurima Das wrote: I am writing a C program to access a PostgreSQL database, where I add a column if it doesn't exists in the table or, update the column, if the column already exits. Please suggest how to work with the conditional statements. N.B.

Re: [GENERAL] conditional IF statements in postgresql

2014-07-07 Thread Albe Laurenz
Madhurima Das wrote: > I am writing a C program to access a PostgreSQL database, where > I add a column if it doesn't exists in the table > or, update the column, if the column already exits. > Please suggest how to work with the conditional statements. > N.B. I wrote the following: > > res = PQe

Re: [GENERAL] conditional IF statements in postgresql

2014-07-06 Thread David G Johnston
madhu_d wrote > Hi, > > I am writing a C program to access a PostgreSQL database, where > > I add a column if it doesn't exists in the table > > or, update the column, if the column already exits. > > Please suggest how to work with the conditional statements. > > Thanks! > > N.B. I wrote the