Link to home
Start Free TrialLog in
Avatar of Danielle Glodowski
Danielle Glodowski

asked on

SQL Command - update

I need to be able to update my SQL DB where the WHERE statement contains personal name such as James O'Brien. If I write the update statement as
UPDATE contact set mailto = 1 WHERE fullname = 'James O'Brien'
it will not work because of the ' in the name. How can I get around this? Is there a different syntext I can use?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Anuj
Anuj
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lee
UPDATE contact set mailto = 1 WHERE fullname = 'James O''Brien'