If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I understand that VAR is a fixed length datatype and it makes sense using it for strings that have always the same amount of characters. I know that VARCHAR is variable length datatype and it stores only as many characters as it needs to store thus it is better to use it with strings of different length.
What I don't understand is giving a length to a VARCHAR datatype like for example VARCHAR(25) - what does it really do and when to use it?