Ruby 连接到 Oracle 数据库并执行SQL查询

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

require "dbi"

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