SQL
<b>Publish ...
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
Publisher
table contains
id
and
name
columns. Id is auto incremented and name is of varchar(40) type. Which of the following queries will execute correctly?
insert into publisher (name) values ('OREILLY');
insert into publisher (name) values ('O Reilly');
insert into publisher (name) values ('O-Reilly');
insert into publisher (name) values ('O'Reilly');
Explanation
Single quotation mark symbol should be escaped -
'O''Reilly'
escape-symbols
3
(3)
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