Ruby/Informix
Ruby/Informix 是 Informix 數(shù)據(jù)庫的 Ruby 語言驅(qū)動(dòng)程序。
示例代碼:
db = Informix.connect('stores')
cur = db.cursor('select * from stock')
cur.open
records = cur.fetch_all
cur.drop # or close, if you want to reopen it later
stmt = db.prepare('insert into state values(?, ?)')
stmt.execute('CA', 'California')
stmt.call('NM', 'New Mexico')
stmt['TX', 'Texas']
評(píng)論
圖片
表情
