what is the equivalent of varbinary(10) in postgresql
16,899
you want to look at bit(n), not bytea
http://www.postgresql.org/docs/current/static/datatype-bit.html
Related videos on Youtube
Author by
liv a
Updated on June 04, 2022Comments
-
liv a almost 2 years
I'm trying to define a
bit
field of 10 bytes. In SQL Server I'd usevarbinary(10)
. I know thatbytea
replacesvarbinary (MAX)
for images, but didn't find any documentation on limiting the number of bits in it.Is there a way to do that?