Click here to Skip to main content
15,920,801 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to delimit this string: It's a nice day "Peter"
SQL
UPDATE `nemotherm`.`orderitems`
  SET `orderitems`.`message` = 'It's a nice day "Peter"
Posted
Updated 22-Dec-10 8:19am
v2

Take a look at this[^]. Pay particular attention to the table of Escape Character Sequences.

The backslash is a pretty standard escape character, used in many languages.
 
Share this answer
 
use the
mysql_real_escape_string()
or
mysql_odbc_escape_string()
from MySQL API.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900