KnowledgeBoat Logo

Computer Science

The data types CHAR(n) and VARCHAR(n) are used to create ……………, and …………… length types of string/text fields in a database.

  1. Fixed, equal
  2. Equal, variable
  3. Fixed, variable
  4. Variable, equal

DDL & DML

1 Like

Answer

Fixed, variable

Reason — CHAR datatype specifies a fixed length string. Defining a length is not required, but the default is 1. While VARCHAR datatype specifies a variable length string. Defining a length is required.

Answered By

1 Like


Related Questions