跳到主要内容

QUOTE

quote

description

Syntax

VARCHAR quote(VARCHAR str)

将参数中所有的字符串按原样输出,并用''套起来

example

mysql> select quote('hello world!\\t');
+-------------------------+
| quote('hello world!\t') |
+-------------------------+
| 'hello world!\t' |
+-------------------------+

keywords

QUOTE