How to Include a Single Quote in a SQL Query | Essential SQL

preview_player
Показать описание

In this video we learn how to include a single quote in our SQL text by "escaping" the quote.

In SQL server single quotes are used to mark the beginning and end of a text string. However, if your text contains single quote, that poses an problem, if it is left alone it will be treated like a delimiter.
Рекомендации по теме
Комментарии
Автор

Thanks a lot dear channel.
This video saved me with an Update script in Production :P :D

aniketkoley
Автор

What do I do if the to be inserted String cannot be changed?
For example I want to add the words 'Sarah's Car' to a table column, but I cannot change anything between the two outer quotes. How do I do that?

TurnYourBassUp
Автор

Mouse clicking is like nails on a chalkboard

franks