QUOTE(str): Quote(str) produce a result that can be used as a properly escaped data value in an SQL statement : QUOTE « String Functions « MySQL Tutorial






If the argument is NULL, the return value is the word "NULL" without enclosing single quotes.

mysql>
mysql>
mysql> SELECT QUOTE('Don\'t!');
+------------------+
| QUOTE('Don\'t!') |
+------------------+
| 'Don\'t!'        |
+------------------+
1 row in set (0.00 sec)

mysql>








23.30.QUOTE
23.30.1.QUOTE(str): Quote(str) produce a result that can be used as a properly escaped data value in an SQL statement
23.30.2.QUOTE(NULL);