[英]inexplicable syntax error when I write one code from the documentation
I have a newbie problem with the syntax. 我的语法有新手问题。 I've just started learning AQL. 我刚开始学习AQL。 The documentation is good but I keep making a syntax error that I can´t explain. 文档很好,但我一直在做一个我无法解释的语法错误。
I tried doing exactly the same as the documentation says; 我尝试完全按照文档说的那样做; I copied the same thing with the same collection as the example and that worked, but when I try writing the same thing, the syntax checker in the web interface blocks me. 我使用与示例相同的集合复制了相同的东西,但是当我尝试编写相同的东西时,Web界面中的语法检查器阻止了我。
Maybe I'm writing something more that I can´t see like a format code in the word? 也许我正在写一些我看不到的字样代码? (I didn´t copy anything from a text processor). (我没有从文本处理器复制任何东西)。 I'm using Firefox and Windows 10 我正在使用Firefox和Windows 10
!( https://ibb.co/fYyCNwK ) !( https://ibb.co/fYyCNwK )
(This is almost the first page of the newbie manual) (这几乎是新手手册的第一页)
INSERT {
"name": "Ned",
"surname": "Stark",
"alive"; true,
"age": 41,
"traits": ["A","H","C","N","P"]
} INTO Characters
You have a semi-colon ( ;
) between "alive"
and true
. 你在"alive"
和true
之间有一个分号( ;
)。
This should be a colon ( :
). 这应该是一个冒号( :
)。
You have: 你有:
"alive"; true,
You should have: 你应该有:
"alive": true,
The syntax error is helpful, it reports: 语法错误很有用,它报告:
unexpected
near '; true,
at position 4:12
(this corresponds to line|row #4 and column #12 and your ;
) at position 4:12
(这对应于行#4和列#12和你的;
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.