Computer Science, asked by Nishika1512, 1 year ago

What is the difference between CHAR and VARCHAR?
Please write atleast 2 points of difference.


HEMANTHKUMAR007: actually today is your exam
HEMANTHKUMAR007: am I right
Nishika1512: Yes
rohith6april: Haaa
rohith6april: Same

Answers

Answered by Lekahdek
4

Hey mate!

Here's your answer!

• CHAR includes only characters while VARCHAR includes both numbers and characters.

• VARCHAR also does not accepts values that contains only numbers or only characters. But CHAR accepts only characters.

• Eg: VARCHAR - 'HelloWorld123'

CHAR - 'HelloFriend'

Hope it helps :)


Nishika1512: Thanks
Lekahdek: wlcm
Similar questions