--Rev19
ALTER TABLE `staff` MODIFY `role` enum('admin', 'employee', 'guest');
ALTER TABLE `staff` ALTER `role` SET DEFAULT 'guest';
它说:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near '--Rev19
ALTER TABLE `staff` MODIFY `role` enum('admin', 'employee', 'guest')' at line 1
这里有什么问题?附带说明一下,为什么 SQL 错误报告必须如此糟糕,大多数语言都会告诉您 SQL 刚刚所说的特定语法错误,请查看手册。