Home > Software > Databases > MySQL
Interview Questions   Tutorials   Discussions   Programs   

MySQL - What is the difference between char and varchar data types?




386
views
asked mar May 21, 2014 04:35 AM  

What is the difference between char and varchar data types?


           

1 Answer



 
answered By Subhanshu Pradhan   0  
CHAR is used for Fixed Length Size Variable
VARCHAR is used for Variable Length Size Variable.
To use storage space efficiently, must use VARCHAR instead of CHAR if variable length is variable
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert