Unless your MySQL is configured to use ANSI_QUOTES in sql_mode, you are able to quote your text in one of two forms: using single quotes or double quotes:
UPDATE world.Country SET HeadOfState = 'Willy Wonka' WHERE Code='USA' UPDATE world.Country SET HeadOfState = "Willy Wonka" WHERE Code="USA"
This makes for JavaScript- or Python-style quoting: you quote by your needs. Say you have a text which includes single quotes:
It is what you read when you don’t have to that determines what you will be when you can’t help it. – Oscar Wilde
You wish to insert this text to some tables. You could go through the trouble of escaping it:
INSERT INTO quotes (quote, author) VALUES ( 'It is what you read when you don\'t have to that determines what you will be when you can\'t help it.', 'Oscar Wilde');
or you could just wrap it in double quotes:
INSERT INTO quotes (quote, author) VALUES ( "It is what you read when you don't have to that determines what you will be when you can't help it.", 'Oscar Wilde');
I find this useful when using SQL to generate queries. Take, for example, eval() for MySQL: the statement: Continue reading » “Quoting text JavaScript/Python style”