Results 1 to 2 of 2

Thread: jdbc question

  1. #1
    Join Date
    Jul 2003
    Posts
    21

    Unanswered: jdbc question

    Sorry for the newbie question,

    I am running a query from my java application.

    resultSet = preparedStatement.executeQuery(query);

    So resultSet will have all the rows found from the query. Is there a way to get the number of coulmns in each row and also the column name?

    Thanks

  2. #2
    Join Date
    Jul 2003
    Location
    US
    Posts
    314

    Arrow MetaData

    Try using MetaData for the same. Search for MetaData JAVA in google, and you would be ok.

    Thanx and Regards
    Aruneesh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •