方法介绍

命令功能:执行SQL命令

语法格式:类_SQL3.执行命令(DBpath, sql)

参数:

DBpath:数据库文件路径

sql:SQL命令

返回值: 成功返回true 失败返回false

require("懒人综合插件")

local path = "/storage/emulated/0/Pictures/data222.db"
--local path = getWorkPath() .. "/data.db"

sql="UPDATE t SET a='aa',b='dd',c='ee',d='ss' where a=33"
ret=类_SQL3.执行命令(path,sql)
print(ret)

Copyright © 湖南合鑫网络科技有限公司 2020 all right reserved,powered by Gitbook该文件修订时间: 2020-12-01 21:05:00

results matching ""

    No results matching ""