Created
March 15, 2013 17:45
-
-
Save ddelponte/5171678 to your computer and use it in GitHub Desktop.
Groovy SQL example of counting rows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def countRows = db.firstRow("select count(*) as numberOfRows from languages") | |
assert 4 == countRows.numberOfRows |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment