Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add details for Hexadecimal Literals #5620

Merged
merged 12 commits into from
Apr 20, 2021
2 changes: 1 addition & 1 deletion literal-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ X'1z' (z 不是合法的十六进制值)
0X12AC (0X 必须用小写的 0x)
```

对于使用 `X'val'` 格式的十六进制字面值,`val` 必须要有一个数字,可以在前面补一个 0 来避免语法错误。
对于使用 `X'val'` 格式的十六进制字面值,`val` 必须要有一个数字,如果数字的长度是奇数(比如X'A',X'11A'),可以在前面补一个 0 来避免语法错误。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

数字的长度 --> val 的长度?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

数字的长度 --> val 的长度?

I have changed "数字的长度" to "val的长度".


{{< copyable "sql" >}}

Expand Down