[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[orca-tech:01806] Re: HAKAMAの使い方をご教授ください
- To: orca-tech@xxxxxxxxxxxxxx
- Subject: [orca-tech:01806] Re: HAKAMAの使い方をご教授ください
- From: Shinji KOBAYASHI <skoba@xxxxxxxxxx>
- Date: Tue, 15 Jun 2010 13:07:24 +0900
そういえば、DBFETCHいれないとデータがとれなかったような。
require 'dbslib'
tbl_yyk={"DRCD" => ""}
server = DB_Server.new("127.0.0.1",0,"ormaster","パスワード")
rc = server.dbops("DBOPEN")
rc = server.dbops("DBSTART")
tbl_yyk["DRCD"]='10002'
rc = server.recordops("DBSELECT","tbl_yyk","yyk",tbl_yyk)
tbl_yyk.each do |k, v|
puts k,v
end
while server.recordops("DBFETCH", 'tbl_yyk","yyk",tbl_yyk) == 0
tbl_yyk.each{ |k,v| puts k,v}
end
rc = server.dbops("DBCOMMIT")
rc = server.dbops("DBDISCONNECT")
server.close