We Recommend

An Introduction to R An Introduction to R
This tutorial manual provides a comprehensive introduction to R, a software package for statistical computing and graphics. R supports a wide range of statistical techniques, and is easily extensible via user-defined functions written in its own language, or using dynamically loaded modules written in C, C++ or Fortran. One of R's strengths is the ease with which well-designed publication-quality plots can be produced.


Posted By

thebugslayer on 06/02/07


Tagged


Versions (?)


Mysql connection


Published in: Groovy 


  1. //One way to add mysql.jar to path is copy to $HOME/.groovy/lib
  2. import groovy.sql.Sql
  3. sql = Sql.newInstance("jdbc:mysql://localhost:3306/test", "root", "", "com.mysql.jdbc.Driver")
  4. sql.eachRow("show tables"){ row ->
  5. println row[0]
  6. }

Report this snippet 

You need to login to post a comment.