Created
June 4, 2014 11:24
-
-
Save aaberg/933f934db3785ec6d05b to your computer and use it in GitHub Desktop.
Truncate table with sql2o
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
try (Connection connection = sql2o.open()) { | |
connection.createQuery("truncate table mytable").executeUpdate(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment