Ruby/Informix

联合创作 · 2023-09-30 18:40

Ruby/Informix 是 Informix 数据库的 Ruby 语言驱动程序。

示例代码:

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']

浏览 3
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报