> 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