Re: Problem in getting column names from DatabaseMetadata Object - Mailing list pgsql-jdbc

From Thomas Kellerer
Subject Re: Problem in getting column names from DatabaseMetadata Object
Date
Msg-id n1ae5l$9vb$1@ger.gmane.org
Whole thread Raw
In response to Problem in getting column names from DatabaseMetadata Object  (stallapp <sree.tallapalli@gmail.com>)
List 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 by date:

Previous
From: stallapp
Date:
Subject: Problem in getting column names from DatabaseMetadata Object
Next
From: Dave Cramer
Date:
Subject: Re: Problem in getting column names from DatabaseMetadata Object