Precede the quote character by an escape character (\). : String : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » String »

 

Precede the quote character by an escape character (\).


mysql>
mysql> CREATE TABLE employee (
    ->      name CHAR(30NOT NULL
    -> );
Query OK, rows affected (0.03 sec)

mysql>
mysql> INSERT INTO employee (nameVALUES (''A');
Query OK, row affected (0.00 sec)

mysql>
mysql> SELECT FROM employee;
+------+
| name |
+------+
'A   |
+------+
row in set (0.00 sec)

mysql>
mysql> drop table employee;
Query OK, rows affected (0.00 sec)

mysql>
mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Data Types
» String