Ruby/Informix是Informix数据库的Ruby语言驱动程序。
示例代码:
db=Informix.connect('stores')cur=db.cursor('select*fromstock')cur.openrecords=cur.fetch_allcur.drop#orclose,ifyouwanttoreopenitlaterstmt=db.prepare('insertintostatevalues(?,?)')stmt.execute('CA','California')stmt.call('NM','NewMexico')stmt['TX','Texas']
评论