Query combining columns

Поиск
Список
Период
Сортировка
От phil campaigne
Тема Query combining columns
Дата
Msg-id 3F09C43D.3050108@charter.net
обсуждение исходный текст
Ответы Re: Query combining columns  (Nabil Sayegh <postgresql@e-trolley.de>)
Список 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 по дате отправления:

Предыдущее
От: Harry Broomhall
Дата:
Сообщение: Re: Problems with arrays
Следующее
От: Harry Broomhall
Дата:
Сообщение: Problems with arrays