Using concat to create value for variable
mysql> mysql> SET @@SQL_MODE = CONCAT(@@SQL_MODE, -> CASE @@SQL_MODE WHEN '' THEN '' ELSE ',' END, -> 'NO_ZERO_IN_DATE'); Query OK, 0 rows affected (0.00 sec)