Question:medium

In MYSQL, which type of value should not be enclosed within quotation marks?

Show Hint

Numbers in MYSQL do not need quotes,
but strings and date literals must be enclosed.
Updated On: Jan 14, 2026
  • DATE
  • VARCHAR
  • FLOAT
  • CHAR
Show Solution

The Correct Option is C

Solution and Explanation

In MySQL, string data types such as CHAR and VARCHAR require enclosing values in quotation marks (single or double).
DATE values are similarly quoted, as they are interpreted as string literals conforming to a date format.
Conversely, numeric data types like FLOAT or INT should be presented without quotes.
Enclosing numeric values in quotes results in their treatment as strings, potentially leading to data type mismatches and query errors.
Consequently, FLOAT is the accurate representation.
Was this answer helpful?
0