CREATE TABLE Course
(
CNO nvarchar(6) NOT NULL PRIMARY KEY CHECK (CNO LIKE '[0-9][0-9]'+'-'+'[0-9][0-9][0-9]'),
CNAME nvarchar(10) NOT NULL,
LHOUR int DEFAULT'0',
CREDIT Decimal(6,1) DEFAULT'0',
SEMESTER nvarchar(2) CHECK(SEMESTER ='春' OR SEMESTER='秋') DEFAULT'秋'
)
最後一行的括号用半角,倒数第二行多了个逗号