QuestionQ20Verified/Retrieving data using the SQL SELECT statementCopy linkReport a problemAsk AstroTutorSave questionWhich two of the following queries return the string Hello! We're ready?Choose twoASELECT "Hello! We're ready" FROM DUAL;BSELECT 'Hello! We're ready' FROM DUAL;CSELECT q'!Hello! We're ready!' FROM DUAL;DSELECT q'[Hello! We're ready]' FROM DUAL;ESELECT 'Hello! We're ready’ ESCAPE '' FROM DUAL;Show AnswerAnswerExplanationOracle 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 moreOracle Database SQL Language Reference — LiteralsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion