KnowledgeBoat Logo

Computer Science

In which datatype the value stored is padded with spaces to fit the specified length.

  1. DATE
  2. VARCHAR
  3. FLOAT
  4. CHAR

Relational Database

1 Like

Answer

CHAR

Reason — The CHAR data type in SQL is used to store fixed-length strings. When a value is stored in a CHAR field, it is padded with spaces to fit the specified length.

Answered By

3 Likes


Related Questions