Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要知道为什么当我使用该语句时:
local forRaws = "SELECT * FROM "..tokenTable[3].."WHERE subcategory = " .. "'" .. tokenTable[4] .. "'"
tokeTable[3] 和 tokenTable[4] 有 2 个不同的字符串非 nil 值。我在 = 附近收到一个语法错误
我究竟做错了什么?
比你花时间。
之前不应该有空格WHERE:
WHERE
"SELECT * FROM "..tokenTable[3].." WHERE subcategory = '" .. tokenTable[4] .. "'"
?