difference between char and varchar data types

The storage size of the char value is equal to the maximum size for this column.the storage size of the varchar value is the actual length of the data entered, not the maximum size for this column.

In short, char is a fixed-length character data type, the varchar is a variable-length character data type.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: