Solved

single quote

Posted on 2014-10-03
1
131 Views
Last Modified: 2014-10-03
I tried to update this and it does not like single quotes. What should I do?

 UPDATE    mytable SET  custname = 'ST VINCENTS school'
              WHERE     (custname LIKE '%ST VINCENT'S school%')
0
Comment
Question by:VBdotnet2005
1 Comment
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 40360181
Use a double-quote in place of the single..
UPDATE    mytable 
SET  custname = 'ST VINCENTS school'
WHERE     (custname LIKE '%ST VINCENT''S school%')

Open in new window

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question