Is there any difference between integer and bit(n) data types for a bitmask?

后端 未结 2 1136
Happy的楠姐
Happy的楠姐 2021-02-19 01:31

I am working with a table in a PostgreSQL database that has several boolean columns that determine some state (e.g. published, visible, etc.). I want t

2条回答
  •  北恋
    北恋 (楼主)
    2021-02-19 02:12

    You can apply the bit string functions directly to a bit string without the need to cast from an integer.

提交回复
热议问题