QUOTE
Quote a string for SQL usage. This function produces a string ready for use as a data value in an SQL statement, escaping special characters.
Syntax
QUOTE(str)Description
Examples
SELECT QUOTE("Don't!");
+-----------------+
| QUOTE("Don't!") |
+-----------------+
| 'Don\'t!' |
+-----------------+
SELECT QUOTE(NULL);
+-------------+
| QUOTE(NULL) |
+-------------+
| NULL |
+-------------+Last updated
Was this helpful?

