Vidyalelo
MySQL · Q778

MySQL

Programming · MySQL · question 778

Q778

The expression '2 BETWEEN 2 AND 5' results in . . . . . . . .

A.
True
Answer
B.
False
C.
-1
D.
2

Answer: Option A

Solution

Answer: Option A
Solution:
This question tests your understanding of the BETWEEN operator in MySQL.
The BETWEEN operator is used to check if a value falls within a specified range.
The expression `2 BETWEEN 2 AND 5` checks if the value `2` is between `2` and `5`, inclusive.
Since `2` is equal to `2` and is within the specified range, the expression evaluates to True.

Therefore, the correct answer is Option A: True.