advanced code snippet search
thebugslayer on 06/02/07
06/02/07 03:53pm06/02/07 03:42pm
//One way to add mysql.jar to path is copy to $HOME/.groovy/libimport groovy.sql.Sqlsql = Sql.newInstance("jdbc:mysql://localhost:3306/test", "root", "", "com.mysql.jdbc.Driver")sql.eachRow("show tables"){ row -> println row[0]}
Report this snippet Tweet
Comment:
You need to login to post a comment.