The update statement below is throwing an error because of the ' within the ''
UPDATE Table
SET [Company Name] = 'O'Donald Media Inc'
WHERE [Company Name] = 'O'Donald Media Inc'
Does anyone have a way to handle this?
Thanks
The update statement below is throwing an error because of the ' within the ''
UPDATE Table
SET [Company Name] = 'O'Donald Media Inc'
WHERE [Company Name] = 'O'Donald Media Inc'
Does anyone have a way to handle this?
Thanks
When writing SQL by hand, use 'O''Donald Media Inc'
for the string syntax. The '' sequence in a SQL string literal is a special encoding for a single apostrophe.
However, if done programmatically (ie. from code), use placeholders.