Skip to content
Question 61 of 95

Q.In MYSQL, which type of value should not be enclosed within quotation marks ? (A) DATE (B) VARCHAR (C) FLOAT (D) CHAR

Karnataka PUCCBSE Class XII Board 2025MCQ· 1mImportance★★★★★
64% · 61/95 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Numeric types like FLOAT are written as bare numbers in SQL; only string and date types require quotation marks. The answer is (C) FLOAT.

When you write a SQL query, MySQL needs to distinguish between different kinds of data. The rule is straightforward: text-like data (strings, dates written as text) goes inside quotes, while numeric data is written as a bare number.

Think about it this way: when you say age = 25, MySQL sees 25 as a number it can do arithmetic with. But when you say name = 'John', the quotes tell MySQL "this is literal text, not a column name or keyword." Dates in MySQL are stored internally as numbers, but you write them as strings like '2024-01-15', so they need quotes too.

Let's examine each option:

  1. DATE – Even though dates represent moments in time, you supply them to MySQL as text strings in a specific format (YYYY-MM-DD). So birth_date = '1990-05-20' requires quotes. Without them, MySQL would try to interpret 1990-05-20 as arithmetic: 1990 - 5 - 20 = 1965.

  2. VARCHAR – This is a variable-length string type. Any string value must be quoted: city = 'Mumbai'. The quotes delimit where the string begins and ends. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.