Machine-translated by Google. Questions are authored in English.
Top

Discussion

The keyword LIKE can be used in a WHERE clause to refer to a range of values.

  • A.True
  • B.False

Answer: B

Correct answer: False

LIKE matches text patterns using % and _; it has no notion of a range and cannot express "between these two values".

Ranges are BETWEEN's work, or the comparison operators >= and <=. The two constructs also behave differently against an index: an equality or range test can use one, while a LIKE pattern beginning with a wildcard cannot, since there is no prefix to seek on.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.