Test Index

Structured Query Language (SQL) Get it on Google PlayDownload on the App Store CBSE Board Videos

© examsnet.com
Question : 18 of 58
Marks: +1, -0
In MYSQL, which type of value should not be enclosed within quotation marks ?
[CBSE 2025 Set 4]
Solution:  
Concept:
In SQL, text (CHAR, VARCHAR) and date (DATE) values are written inside quotes, e.g. 'Amit', '2025-03-15'. Numeric values (INT, FLOAT, DECIMAL) are written without quotes.
Explanation:
FLOAT is a numeric type, so its values are written as plain numbers:
INSERT INTO STUDENT VALUES ('Amit', 'A', 87.5, '2007-05-14');
Here 87.5 (FLOAT) has no quotes, while the CHAR/VARCHAR and DATE values are quoted.
Answer:
Option C (FLOAT)
© examsnet.com
Advertisements
Go to Question: