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?