Assign by calculation
mysql> mysql> SET @PI = CAST(22 AS BINARY)/7; Query OK, 0 rows affected (0.00 sec) mysql>