A backslash turns off the special meaning of the character. : Escape « String « SQL / MySQL






A backslash turns off the special meaning of the character.

       
mysql>
mysql> SELECT 'Install MySQL in C:\\mysql on Windows';
+--------------------------------------+
| Install MySQL in C:\mysql on Windows |
+--------------------------------------+
| Install MySQL in C:\mysql on Windows |
+--------------------------------------+
1 row in set (0.00 sec)

mysql>

   
    
    
    
    
    
    
  








Related examples in the same category

1.To specify a particular character as the escape character, use an ESCAPE clause: