single quote problem

single quote problem

 

  

select * from users where name = 'o'Conner'

As expected, gave me error:
Server: Msg 105, Level 15, State 1, Line 3
Unclosed quotation mark before the character string '

So how should I do for the single quote problem?


Thanks a lot in advance.

David Lin
DBA
Concentra
(972)364-8246
****** CONFIDENTIALITY NOTICE ******
NOTICE: This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message from your system. Thank you.

MS Sql Server LazyDBA home page