运行此代码时,出现错误“试图调用全局'forId'(nil值)“
local sqlite3 = require("sqlite3")
local path = system.pathForFile("data.db",system.DocumentsDirectory )
localdb, dbErrorCode, dbError= sqlite3.open( path )
localtablesetup = [[CREATE TABLE IF NOT EXISTS test (id INTEGER PRIMARY KEY,content, content2);]]
db:exec(tablesetup)
db:close()
有人可以解释或告诉我问题
谢谢