Test Index

CBSE Class 12 Computer Science 2025 Paper Set 4 Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 15 of 37
Marks: +1, -0
In MYSQL, which type of value should not be enclosed within quotation marks ?
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: