Can someone explain Data Type lengths to me?
From what I can tell the meaning of the word Length depends on the actual datatype being used. Is this correct?
For instance if I use a VARCHAR of length 200 it literally means 200 characters.
If I use an INT of Length 4 does this mean a maximum range of 0 to 9999, -9999 to 9999, or something else?
If I have a TEXT of Length 16 it seems to mean 16Bit or 65,536 characters. Is this correct?
It's quite confusing because having moved from Access to SQL Server (via MySQL) I seem to think that Access dealt mainly in Bits rather than specific field sizes.
Thanks in advance,
Chris
From what I can tell the meaning of the word Length depends on the actual datatype being used. Is this correct?
For instance if I use a VARCHAR of length 200 it literally means 200 characters.
If I use an INT of Length 4 does this mean a maximum range of 0 to 9999, -9999 to 9999, or something else?
If I have a TEXT of Length 16 it seems to mean 16Bit or 65,536 characters. Is this correct?
It's quite confusing because having moved from Access to SQL Server (via MySQL) I seem to think that Access dealt mainly in Bits rather than specific field sizes.
Thanks in advance,
Chris