queries the table "EMP": : Oracle « Database « Ruby






queries the table "EMP":


require "dbi"

URL = "dbi:Oracle:oracle.neumann"
dbh = DBI.connect(URL, "scott", "tiger")
rows = dbh.select_all("SELECT * FROM EMP")
p rows
dbh.disconnect

 








Related examples in the same category

1.Without closing the connection