QuestionQ20

VerifiedRetrieving data using the SQL SELECT statement

Which two of the following queries return the string Hello! We're ready?

Choose two
Explanation

Oracle alternative-quoted string literals use q followed by a delimiter. The ! delimiter and the matched [ and ] delimiters allow the apostrophe in We're to appear as part of the returned text without escaping. Ordinary Oracle string literals require an embedded apostrophe to be represented by two consecutive single quotation marks; a backslash is not the ordinary string-literal escape mechanism.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!