Let see a simple example of how Groovy calls out the query
import groovy.sql.sql
sql = Sql.newInstance ('jdbc: jtds: sqlserver://serverName/dbName-Class;domain=domainName','username','password','net.sourceforge.jtds.jdbc.driver')
sql.eachRow ('select * from tableName') {print "$it.id--${it.firstName} –" }
Posted Date:- 2021-12-01 08:01:36
How do I call my custom environment in Grails?
Which environments are available by default in Grails?
What happens when you call grails bug-report?
What are some things I need to be careful about when working with the Grails console?
How do I get a hold of my Spring beans in the Grails console?
What is the difference between the Grails console, shell and interactive modes?
What Is The Command To Do Static Scaffolding Of A Controller?
What Is The Command To Run Your Application In A Different Environment That Development?
What Is The Command To Create A Controller?
What Is The Command To Create A Domain Class?
What Is The Command To Create A New Application In Grails?
What relational operators is used for in Groovy?
When “propertyMissing (String)†method is called?
Explain what does the JsonSlurper class indicates?
Explain the role of Grape dependency in Groovy?
List out the differences between Groovy and Java?
Explain what are Bitwise Operators in Groovy?
Explain how you can include a groovy script in another groovy?
Explain how you can query in Groovy?
What do you understand by metaprogramming?
What is the use of bootstrap.groovy?
Please explain the difference between the Config.groovy and BuildConfig.groovy files.
Explain the concept of externalized configuration. What is this good for?
What are the best practices to be followed while developing a grails application?
How can you run Scripts in Groovy?
Tell one reason why more and more programmers are considering Groovy?
Explain the concept of thin documentation in Groovy
What according to you are the true reasons for the popularity of Groovy?
What exactly do you know about JVM?
How could you retrieve a single value from data base using Groovy?
Explain how Groovy string is expressed?
Explain what is ExpandoMetaClass in Groovy?
What is the license for Groovy?
Explain how you can add stuff to the classpath when running things in groovy or groovysh?
What is the role of closure and listeners in Groovy?
Mention what are some features does Groovy JDK offers?
What do you mean by scaffolding? How do we use it?
What are the best practices to be followed while developing a grails application?
What do you understand by the concept of thin documentation in Groovy?
How do I edit the web.xml file of my grails application?
Explain how Scripts are run in Groovy?