Grails

Truncate Table ? executeUpdate OR createSQLQuery

In one of the modules that I was working on , I needed to delete the previous data from a table then load up the data into those tables again and then manipulate code through the 'id's' on those tables. So this is what I was doing ... [groovy] Event.executeUpdate('delete from Event') EventInstance.executeUpdate('delete from...

by Manoj Mohan
Tag: truncate
14-Apr-2011