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.
我在lua中有一张桌子:
localhost:3301> box.space.S24.index[1].parts --- - - type: string is_nullable: false fieldno: 1 ...
我想获得关键的价值:fieldno。但是当我输入这段代码时:
localhost:3301> box.space.S24.index[1].parts.fieldno --- - null ...
我得到了空。
您在-输出中缺少它前面的第二个;它是一个嵌套在数组中的数组。尝试...parts[1].fieldno
-
...parts[1].fieldno