12345678910111213141516 |
- local M = {}
- local mysqldbx = require "mysqldbx"
- -- local tg_app = require "tg_app"
- -- function M.loaduser(id)
- -- local sql = string.format("select * from `sg_user` where id = %d", id)
- -- return mysqldbx.query(sql)
- -- end
- function M.selectSql(tab_name,key,value)
- return string.format("select * from `%s` where %s = %d",tab_name, key,value)
- end
- return M
|