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

Share:
16,899

Related videos on Youtube

liv a
Author by

liv a

Updated on June 04, 2022

Comments

  • liv a
    liv a almost 2 years

    I'm trying to define a bit field of 10 bytes. In SQL Server I'd use varbinary(10). I know that bytea replaces varbinary (MAX) for images, but didn't find any documentation on limiting the number of bits in it.

    Is there a way to do that?