[prev in list] [next in list] [prev in thread] [next in thread]
List: mysql-java
Subject: Re: Getting number of columns
From: guy <guy () polylab ! sfu ! ca>
Date: 2000-07-06 19:30:11
[Download RAW message or body]
perhaps you can use the relevant part of this code:
ResultSet rs = stmt.executeQuery(query);
System.out.println("rs= "+rs);
int numColumns = rs.getMetaData().getColumnCount();
System.out.println("numColumns= "+numColumns);
Please let me know if this was helpful
Guy
Anders Ericsson wrote:
> Is there anyway I can retrieve the number of columns other than
> in a loop?
>
> /Anders Ericsson
> SE
>
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail java-thread1351@lists.mysql.com
>
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail java-unsubscribe@lists.mysql.com instead.
---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail java-thread1415@lists.mysql.com
To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail java-unsubscribe@lists.mysql.com instead.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic