Question:

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.
  • DATE
  • VARCHAR
  • FLOAT
  • CHAR
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

In MYSQL, values for string data types like CHAR and VARCHAR
must be enclosed within quotation marks — either single or double quotes.
DATE values are also written in quotes,
because they are treated as string literals representing a date format.
However, numeric data types like FLOAT or INT
should be written without quotes.
If a number is enclosed in quotes, it is treated as a string,
which can cause data type mismatches and errors in queries.
Therefore, the correct answer is FLOAT.
Was this answer helpful?
0
0

Top Questions on SQL

View More Questions

Questions Asked in CBSE CLASS XII exam

View More Questions