jdbc question

Поиск
Список
Период
Сортировка
От Phillip Rhodes
Тема jdbc question
Дата
Msg-id 01BF7315.59104850.rhodespc@bellatlantic.net
обсуждение исходный текст
Ответы Re: [INTERFACES] jdbc question  (Lars <lars@sscsinc.com>)
Re: [INTERFACES] jdbc question  ("Ken J. Wright" <ken@ori-ind.com>)
Список pgsql-interfaces
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

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

Thanks,
Phillip



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

Предыдущее
От: "Paul Green"
Дата:
Сообщение: Linux+postgresql+ODBC+StarOffice
Следующее
От: "Bryan White"
Дата:
Сообщение: The persistance of C functions