Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain how you can query in groovy?



Explain how you can query in groovy?..

Answer / 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

More Apache Groovy Interview Questions

Why use groovy?

1 Answers  


Explain the role of grape dependency in groovy?

1 Answers  


List out the differences between groovy and java?

1 Answers  


What are the advantages of groovy?

1 Answers  


What do you understand by groovy?

1 Answers  


What is sitemesh?

1 Answers  


Explain how you can build ast (abstract syntax trees) in groovy from string?

1 Answers  


What is groovy?

1 Answers  


Explain how groovy string is expressed?

1 Answers  


Explain how you can query in groovy?

1 Answers  


What is groovysh?

1 Answers  


Mention the features offered by groovy jdk.

1 Answers  


Categories