Lua脚本通过ADODB连接数据库
2016-08-23
0 0 0
暂无评分
其他
如何获取积分?
This project is providing a lib to connect database via ADODB for Lua on Windows platform. luaado is a project under the luasql.
Prepare and open the driver:
require "luasql.adodb" env = assert (luasql.adodb())
env will be used to build the connection.
Connect to Database:
con = assert (env:connect("Provider=SQLOLEDB.1;Password=123456;Persist Security Info=True;User ID=sa;Initial Catalog=EOSDB;Data Source=GINGKOBRANK"))
con will be used to execute the statement.
execute a statement:
res = con:execute(\* FROM people)
execute statement by Command:
res = con:execute(\* FROM people WHERE name like ?, 0, {name="John%&
lua
数据库
ADOdb
脚本
通过
连接
相关源码推荐
如何建立数据库
0
0
暂无评分
SQLiteStudio
0
0
暂无评分
C#图书管理系统
0
0
暂无评分
自己动手实现lua的随书源码.rar
0
0
暂无评分
数据库驱动包
0
0
暂无评分
暂无评论