How to get column comment
Hi,
I am using pgSQL as database with JSP.
I have given coomets to each column in table.
I have retieved the column comment using :
"select col_description('table_name'::regclass,column+index)"
Now i have stored these column comments in a combo box.
Now i want to retrieve the column name matching with the comments in combo.
When user selects the comment from combo then appropriate column name should be desplayed below.
I am not able to get column name in pgsql...
so i retrived its comment using above method.
is there any method to retrieve column comment in JAVA?
Help me
Eexample:
suppose
table_name=institute
columns: instcode,instname.
column comments: institute code,institute name // this will be in combo
When user selects "institute name" from combo then "instcode" then i should get "instname"
PLz help me

