Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import groovy.sql.Sql
- def sql = Sql.newInstance("jdbc:mysql://localhost:3306/test", "root","sms003", "com.mysql.jdbc.Driver")
- //Drop table if it already exists
- sql.execute('drop TABLE users')
Add Comment
Please, Sign In to add comment