Skip to content

Commit

Permalink
Add details for Hexadecimal Literals (pingcap#5620) (pingcap#6069)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Apr 20, 2021
1 parent 92b14f4 commit 43b4536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion literal-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ X'1z' (z 不是合法的十六进制值)
0X12AC (0X 必须用小写的 0x)
```

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

{{< copyable "sql" >}}

Expand Down

0 comments on commit 43b4536

Please sign in to comment.