Query combining columns - Mailing list pgsql-novice

From phil campaigne
Subject Query combining columns
Date
Msg-id 3F09C43D.3050108@charter.net
Whole thread Raw
Responses Re: Query combining columns
List pgsql-novice
    Hi All,
Can I combine 2 columns as a single column in a select statement?
i.e.  select value_1, value_2, (value_2 + value_2) from table;

If so, in java how do I get the value of the combined column out of the
result object?
I tried
 checkSum = result.getInt("(value_1 + value2)");
and
checkSum=result.getInt(3);
Thanks,
Phil


pgsql-novice by date:

Previous
From: Harry Broomhall
Date:
Subject: Re: Problems with arrays
Next
From: Harry Broomhall
Date:
Subject: Problems with arrays