Bitwise operators in select statements for using Bitmasks: Advanced
This demonstrates searching bitmasks using named constants. It uses a more complex way to represent the constants, which is more powerful for showing common characteristics.
id | order_name | product | quantity | bitmask | matched_attributes |
---|---|---|---|---|---|
11 | MyOrder | pants | 1 | 2129924 | COLOR_LIME, SIZE_XS, MATERIAL_COTTON |
12 | MyOrder | pants | 1 | 2129924 | COLOR_LIME, SIZE_XS, MATERIAL_COTTON |
13 | MyOrder | pants | 1 | 2359360 | COLOR_MAGENTA, SIZE_L, MATERIAL_COTTON |
14 | MyOrder | pants | 1 | 2359360 | COLOR_MAGENTA, SIZE_L, MATERIAL_COTTON |