[Answer] Differentiate between char(n) and varchar(n) data types with respect to databases.

The Question : Differentiate between char(n) and varchar(n) data types with respect to databases.

Solution for the question :
char(n): stores a fixed-length string between 1 and 255 characters if the value is of smaller length, adds blank spaces some space is wasted varchar(n) : stores a variable length string no blanks are added even if value is of smaller length no wastage of space 

The correct answer to the question is researched by our moderators and shared with you. You can give feedback by commenting for the answers you think are wrong.

Leave a Reply

Your email address will not be published. Required fields are marked *