DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    16

    How to fin out column

    hello all,

    I have one resultset and I want to know how to find out no of columns in that ResultSet

    Please answer this query as soon as possible

    Regards
    Rahul Vyas

  2. #2
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    you can obtain all the information on a resultset by getting it's resultsetmetadata object.
    rs.getResulSetMetaData().
    this will contain all neccesarry information, like amount of columns, name of columns, datatypes of the columns etc. have a look at the javadoc or any other online resources.

Similar Threads

  1. DataGrid Boundcolumn vs Template column
    By rkbnair in forum ASP.NET
    Replies: 0
    Last Post: 04-04-2006, 09:58 AM
  2. help with sparse matrix
    By jrhaley123 in forum Java
    Replies: 7
    Last Post: 11-19-2005, 07:18 PM
  3. DataGrid Column Headers
    By Greg Rothlander in forum ASP.NET
    Replies: 3
    Last Post: 10-23-2003, 02:55 PM
  4. Replies: 1
    Last Post: 04-01-2003, 01:22 PM
  5. CheckBox Column in a DataGrid ?
    By Jim H in forum .NET
    Replies: 1
    Last Post: 06-11-2001, 06:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links