Created
October 15, 2012 19:48
-
-
Save sergiomichels/3894841 to your computer and use it in GitHub Desktop.
Groovy Sql & ORA-00903 - Solution
This file contains 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 sql = new Sql(dataSource) | |
def tables =["myTable1", "myTable2"] | |
tables.each {tab -> | |
sql.execute("truncate table ${tab}".toString()) //works! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment