Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个带有 TINYINT(1) 值的单独列的表,是否可以将它们组合并作为具有位(编辑:位字段)数据类型的单列返回?
我想你想申请Logical Operators很多TINYINT专栏。
Logical Operators
TINYINT
您可以使用&&或||。
&&
||
详情请看这里
我认为您需要按位运算符。逻辑运算符的单数版本。
BIT_COUNT() Return the number of bits that are set & Bitwise AND ~ Invert bits | Bitwise OR ^ Bitwise XOR << Left shift >> Right shift