InterviewSolution
Saved Bookmarks
| 1. |
Differentiate between Char and Varchar datatypes in MySql. |
|
Answer» The Char data-type stores fixed length strings. If a string to be stored in a field having length smaller than the field size then padded on the right is done automatically before being stored. Whereas, Varchar supports variable length strings and therefore if the string to be stored is smaller than the field size it stores without modification. And hence, it saves memory. |
|