Answer Posted / Teerath Ram
Groovy provides several libraries for working with databases, including the Groovy SQL library and the Grails domain class Query DSL. To perform a simple SQL query using Groovy SQL, you would use the following syntax: sql = Sql.newInstance('jdbc', 'url', 'username', 'password') results = sql.eachRow('SELECT * FROM myTable') { row -> println row.FIELDS }
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category