Groups | Blog | Home
all groups > sql server (microsoft) > april 2007 >

sql server (microsoft) : Update Statement


Ed Murphy
4/6/2007 10:52:44 AM
[quoted text, click to view]

To indicate that the ' is part of the data and not a delimiter, you need
to double it up, i.e. UPDATE Customers SET LastName = 'O''Conner'

(I assume you have a suitable WHERE clause, and simply omitted it
louciv
4/6/2007 11:36:01 AM
How do I write an Update statement to update a field called LastName with
this value O'Conner.
I've tried the norm but I keep getting error messages.
UPDATE Customers SET LastName = 'O'Conner'

How do I fix?

Thanks,
Lou

AddThis Social Bookmark Button