Subject | Re: [firebird-support] binary or string? |
---|---|
Author | Lester Caine |
Post date | 2004-12-13T10:57:15Z |
Storage Box wrote:
Yes a simple INTEGER will do!
for hex, in which case THIS stores a 64 bit number. Thich is why I was
thinking BIGINT.
You need to think about what you are trying to do. The database will
store a 32 bit number in an INTEGER. How you display it is up to you,
you do not need to convert it hexadecimal before you store it !
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
> A bigint would be overkill since it is not a 64-bit value. So, a int/bigintOK had not read properly - saw 2 and 32bit integer, along with char(16)
> field can legally store hexadecimal values?
Yes a simple INTEGER will do!
> Really what I wanted to know is how to store a 16-bit hexadecimalchar(16) will store 16 characters. They could be restricted to 0-9,A-F
> string/binary value. I wanted to be sure that a char(16) would be efficient
> enough to justify it (it's no integer but hey, it's more useful).
for hex, in which case THIS stores a 64 bit number. Thich is why I was
thinking BIGINT.
You need to think about what you are trying to do. The database will
store a 32 bit number in an INTEGER. How you display it is up to you,
you do not need to convert it hexadecimal before you store it !
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services