You can imbed single quotes using an additional quote in the string. Your example would work like this:
insert...
select 'Gary''s Garage'
For quotes at the end of a string, you will need to add an additional quote. If you wanted "The ball is Chris'" (it is the best example i can think of). You should enter:
A single quote ['] (ascii 39) is not an apostrophe [`] (ascii 96).
They are two distinct characters with differenct ascii values. However millions of sloppy data entry perople and typists do not know the difference.
What I tend to do in my applications is replace single quotes with apostrophies in character fields before doing the insert, thereby avoiding the problem in the first place.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.