我想在mysql中创建一个事件时为event_name添加更灵活的名称。
mysql> CREATE EVENT test
-> ON SCHEDULE AT '2006-02-10 23:59:00'
-> DO INSERT INTO test.totals VALUES (NOW());
Query OK, 0 rows affected, 1 warning (0.00 sec)
我也想添加这样的名字。
mysql> CREATE EVENT 2sjoira42092ajdfj
-> ON SCHEDULE AT '2006-02-10 23:59:00'
-> DO INSERT INTO test.totals VALUES (NOW());
我收到了错误。
ERROR 1064 (42000): You have an error in your SQL syntax;
我该怎么做? 感谢。