Lua数据库访问
Lua 连接MySql 数据库:
1 | require "luasql.mysql" |
5.2 版本之后,require 不再定义全局变量,需要保存其返回值。require "luasql.mysql"
需要写成:luasql = require "luasql.mysql"
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Lua 连接MySql 数据库:
1 | require "luasql.mysql" |
5.2 版本之后,require 不再定义全局变量,需要保存其返回值。require "luasql.mysql"
需要写成:luasql = require "luasql.mysql"