Corona Lua SQLite获得单行?

时间:2016-07-14 20:36:02

标签: sqlite lua corona

我正抓住这样一行

local thisRow 
for row in db:nrows("SELECT * FROM levels WHERE level='" .. myapp.level .. "' LIMIT 1") do
    thisRow = row
end

这真是愚蠢..我搜索了文档,但我还没找到像db:exec("query"):getFirst()

这样的内容

任何方式只需抓住一条记录?

0 个答案:

没有答案