1. Home
  2. Computer Science MCQs
  3. MySQL
  4. In a LIKE clause, you can ask for any 6 letter value by…

Added 19 Jan 2024

In a LIKE clause, you can ask for any 6 letter value by writing?

  1. LIKE ??????
  2. LIKE .{6} Answer 5: LIKE ^.{6}$
  3. LIKE …… (that’s six dots)
  4. LIKE ______ (that’s six underscore characters) Correct answer

Correct answer

D. LIKE ______ (that’s six underscore characters)

14 views

MCQSEXAM

Explanation

LIKE '______' — six underscore characters. In a LIKE pattern each underscore matches exactly one character, so six of them match any value exactly six characters long.

The percent sign matches any number of characters. Question marks and dots are wildcards in other systems (shell patterns and regular expressions), not in SQL LIKE.

Practise more Database Management Systems MCQs with answers and explanations on MCQsExam.com.

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More MySQL MCQs

Practise all MySQL MCQs

Similar MCQs