Bitwise operators in select statements for using Bitmasks: MySQL basic

Using bitwise operators and defined constants.

You must execute the code again to save those values in the database.
idorder_nameproductquantitybitmaskmatched_attributes
11MyOrderpants12129924COLOR_LIME, MATERIAL_COTTON, SIZE_XS
12MyOrderpants12129924COLOR_LIME, MATERIAL_COTTON, SIZE_XS
13MyOrderpants12359360COLOR_MAGENTA, MATERIAL_COTTON, SIZE_L
14MyOrderpants12359360COLOR_MAGENTA, MATERIAL_COTTON, SIZE_L