aspose file tools*
The moose likes Groovy and the fly likes How to get column datatype in groovy sql? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "How to get column datatype in groovy sql?" Watch "How to get column datatype in groovy sql?" New topic
Author

How to get column datatype in groovy sql?

Nazeer Ahammad
Ranch Hand

Joined: Feb 26, 2012
Posts: 43
hi all,

how to get column data types using groovy sql?


regards,
nazeer
Nazeer Ahammad
Ranch Hand

Joined: Feb 26, 2012
Posts: 43
i have used below code to resolve my problem

sql.rows(query) { meta ->
colDataType = (1..meta.columnCount).collect {
meta.getColumnTypeName(it)
}
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get column datatype in groovy sql?
 
Similar Threads
last record
Learning Groovy
Datatype issue while calling a Stored procedure from Groovy
How to print all the fields in a record
com.gargoylesoftware.htmlunit.ScriptException: TypeError: is not a function, it is undefined