Subject | Re: [firebird-support] 1 Byte Field |
---|---|
Author | Helen Borrie |
Post date | 2004-01-17T12:05:34Z |
At 01:22 PM 17/01/2004 +0200, you wrote:
(Varchars store the data + 2 bytes for the length).
CHAR(1) would be exactly one byte if you used a 1-byte character set.
/helen
>I need to store a flag value in a the smallest possible way. 1 Byte isNo, a VARCHAR(1) would be three bytes if you stored any data in it.
>sufficient. If I declare a fiield as VARCHAR(1) would that field be only 1
>Byte is size ?
(Varchars store the data + 2 bytes for the length).
CHAR(1) would be exactly one byte if you used a 1-byte character set.
/helen