Informatics Practices

Assertion. Data types varchar and char are the same as they both represent the string data.

Reason. The VARCHAR datatype stores variable string length while CHAR datatype stores the string always as fixed length strings.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

SQL Queries

1 Like

Answer

A is false but R is true.

Explanation
The VARCHAR and CHAR data types are not the same, as they differ in how they store string data. The VARCHAR data type stores variable-length string, while the CHAR data type stores strings as fixed-length character strings.

Answered By

2 Likes


Related Questions