Without closing the connection : Oracle « Database « Ruby






Without closing the connection


require "dbi"
URL = "dbi:Oracle:oracle.neumann"
DBI.connect(URL, "scott", "tiger") do | dbh |
  p dbh.select_all("SELECT * FROM EMP")
end

 








Related examples in the same category

1.queries the table "EMP":