Skip to content

Commit

Permalink
cherry pick pingcap#5620 to master
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <[email protected]>
  • Loading branch information
zoujia-cm authored and ti-srebot committed Apr 20, 2021
1 parent 2498c2c commit 52b027e
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 52b027e

Please sign in to comment.