jastrachan | 6 May 09:18 2004
Picon

Re: MetaData of a ResultSet?

On 6 May 2004, at 07:31, alex@... wrote:
> How can I retrieve the metaData of an sql query?
>
> It would be nice to do
>
> sql.eachRow { row | 'get here the metadata' }
>
> or something like that.
>

each row is an instance of GroovyResultSet...

http://groovy.codehaus.org/apidocs/groovy/sql/GroovyResultSet.html

and so implements ResultSet. So you can just type

row.getMetaData()

or

row.metaData

James
-------
http://radio.weblogs.com/0112098/

Gmane