Subject Re: [firebird-support] 1 Byte Field
Author Helen Borrie
At 01:22 PM 17/01/2004 +0200, you wrote:
>I need to store a flag value in a the smallest possible way. 1 Byte is
>sufficient. If I declare a fiield as VARCHAR(1) would that field be only 1
>Byte is size ?

No, a VARCHAR(1) would be three bytes if you stored any data in it.
(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