Vidyalelo
MySQL · Q883

MySQL

Programming · MySQL · question 883

Q883

INT3 maps to MySQL type . . . . . . . .

A.
TINYINT
B.
SMALLINT
C.
MEDIUMINT
Answer
D.
BIGINT

Answer: Option C

Solution

Answer: Option C
Solution:
This question is about how MySQL stores different types of numbers.

In MySQL, INT3 is a way to specify the size of an integer (whole number)
We use it to tell MySQL how many bytes should be used to store that number.
Let's break down the options:
Option A: TINYINT - Uses 1 byte to store a number.
Option B: SMALLINT - Uses 2 bytes to store a number.
Option C: MEDIUMINT - Uses 3 bytes to store a number.
Option D: BIGINT - Uses 8 bytes to store a number.
Since INT3 uses 3 bytes, the correct answer is Option C: MEDIUMINT.