Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i want to get the column names from the result set

Status
Not open for further replies.

sundeep

Programmer
Joined
May 2, 2001
Messages
1
Location
US
I have written a stored procedure which returns me a result set. but the column name it gives is 1, 2, 3 ...
I have tried giving ResultSetMetaData.getColumnName() in my client aplication but still it gives me the same 1, 2, 3 ...
Is there any way to get the column name from the result set obtained?.

 
String str1 = result.getString(1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top