Question:

Which of the following is not a valid data type of SQL?

Show Hint

SQL does not use STR(n) — use CHAR, VARCHAR, or TEXT for strings.
Updated On: Jul 14, 2025
  • CHAR(n)
  • VARCHAR(n)
  • STR(n)
  • DATE
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

In SQL, data types define the kind of data that can be stored in a column.
- CHAR(n) is a fixed-length character type.
- VARCHAR(n) is a variable-length character type.
- DATE is used to store calendar dates.
However, STR(n) is not a standard SQL data type — it may appear in other programming languages like Python (as "str"), but not in SQL syntax.
Hence, it is the incorrect or invalid option in the context of SQL data types.
Was this answer helpful?
0
0

Questions Asked in CBSE CLASS XII exam

View More Questions