• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting column name

 
Tushar Kherde
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchians,

Is there any way to get the column name through iBatis.

like i have done SELET * FROM any table
and i want to know the column names..........any idea

[edited to change JDBC to iBatis since the poster indidicated this is the question]
[ October 01, 2006: Message edited by: Jeanne Boyarsky ]
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use getColumnName(int column_no) Method of ResultSetMetaData Interface to get the designated column's name.

ResultSetMetaData Java Doc

it would be helpful to you..
 
Tushar Kherde
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Saif
i will try this. but i want to achive this through ibatis. thanks a lot
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tushar Kherde:
[Q]Thanks Saif
i will try this. but i want to achive this through ibatis.[/Q]



What is the ibatis???
[ October 01, 2006: Message edited by: Ankur Sharma ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic