在 MySQL Workbench (Mac) 中,如果不在注释后的语句前放置分号,则不会执行语句。所以 DROP、USE 和 CREATE TABLE 不执行;下一条语句给出错误..
-- Comment
;DROP DATABASE IF EXISTS dbDataBase;
CREATE DATABASE dbDataBase
CHARACTER SET 'utf8'
COLLATE 'utf8_general_ci'; -- define set of rules to compare characters
;USE dbDataBase;
-- Make a table
;CREATE TABLE Teams
(
teamID INTEGER UNSIGNED NOT NULL,
teamName VARCHAR(50) NOT NULL
);