Re: Problem in getting column names from DatabaseMetadata Object

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Problem in getting column names from DatabaseMetadata Object
Дата
Msg-id n1ae5l$9vb$1@ger.gmane.org
обсуждение исходный текст
Ответ на Problem in getting column names from DatabaseMetadata Object  (stallapp <sree.tallapalli@gmail.com>)
Список pgsql-jdbc
> I am using the following code to get the column names of my postgres table
> but it fails. My database name is "employee" and table name is "employee".

But you are connecting to a database called "data_gen":

> DriverManager.getConnection("jdbc:postgresql://sampel.db:5432/data_gen", "postgres"

Also: what exactly does "it fails" mean? Do you get an exception? If yes, what is the exception?

Thomas

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

Предыдущее
От: stallapp
Дата:
Сообщение: Problem in getting column names from DatabaseMetadata Object
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Problem in getting column names from DatabaseMetadata Object