SQLUSA

Microsoft SQL Server 2005 Best Practices

Microsoft SQL Server 2000 Best Practices

How to imbed apostrophe inside a string?

 

The following sample with John Deere tractor's invoice demonstrates the usage of double single quotes:

 

select 'That''s the right amount on the John Deere tractor''s invoice.'

It will print: That's the right amount on the John Deere tractor's invoice.

The Best SQL Server Training in the World
The future is just a click away! Your Future!
SQLUSA.com Home Page