SQL
If we want ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
If we want to fetch from Discount table all records that have "Joe's Special Blend" (without quotation marks) value in Description column, which query is correct:
SELECT * FROM Discount WHERE Description = "Joe's Special Blend"
SELECT * FROM Discount WHERE Description = 'Joe's Special Blend'
SELECT * FROM Discount WHERE Description = 'Joe''s Special Blend'
SELECT * FROM Discount WHERE Description = "Joe''s Special Blend"
SELECT * FROM Discount WHERE Description = Joe's Special Blend
Explanation
Single quotes are escaped by doubling them up.
escape-symbols
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
S
QL
Quiz
Login to learn SQL
or
Read more about
SQL Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment