A ' inside a string quoted with ' may be written as ''.
mysql>
mysql> CREATE TABLE employee (
-> name CHAR(30) NOT NULL
-> );
Query OK, 0 rows affected (0.02 sec)
mysql>
mysql> INSERT INTO employee (name) VALUES ('''A');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> SELECT * FROM employee;
+------+
| name |
+------+
| 'A |
+------+
1 row in set (0.00 sec)
mysql>
mysql> drop table employee;
Query OK, 0 rows affected (0.00 sec)
mysql>