Re: [INTERFACES] jdbc question

Поиск
Список
Период
Сортировка
От Ken J. Wright
Тема Re: [INTERFACES] jdbc question
Дата
Msg-id 3.0.1.32.20000209151731.02096c70@ori-ind.com
обсуждение исходный текст
Ответ на jdbc question  (Phillip Rhodes <rhodespc@bellatlantic.net>)
Ответы pgAdmin on NT (NT4SP6)  (Tomaz Borstnar <tomaz.borstnar@over.net>)
Список pgsql-interfaces
At 15:50 02/09/2000 -0000, Phillip Rhodes wrote:
>If I submit a query joining two tables with identical column names, how can 
>I differentiate the different columns and get the correct values?
>
>table test1
>(col1 INTEGER,
>col2 INTEGER)
>
>table test2
>(col1 INTEGER,
>col2 INTEGER)
>
>
>select * from test1, test2
>where test1.col1 = test2.col1

select a.*, b.col1 as col3, b.col2 as col4 from test1 a, test2 b
where a.col1 = b.col1

>The call
>rs.getInt("col1") returns successfully with a value, but there are 2 col1 
>columns in the resultset.
>
>Thanks,
>Phillip
>
>
>************
>


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

Предыдущее
От: Craig Orsinger
Дата:
Сообщение: RE: [INTERFACES] The persistance of C functions
Следующее
От: Phillip Rhodes
Дата:
Сообщение: RE: [INTERFACES] jdbc question