国家开放大学 / 数据库应用技术
7. 设有Teachers表,该表的定义如下:
CREATE TABLE Teachers(
Tno CHAR(8) PRIMARY KEY,
Tname VARCHAR(10) NOT NULL,
Age TINYINT CHECK(Age BETWEEN 25 AND 65) )
插入语句中,不能正确执行的是( )。
A.
INSERT INTO Teachers VALUES('T100','张宏',NULL)
B.
INSERT INTO Teachers(Tno,Tname,Age) VALUES('T100','张宏',30)
C.
INSERT INTO Teachers(Tno,Tname) VALUES('T100','张宏')
D.
INSERT INTO TeachersVALUES('T100','张宏')
CREATE TABLE Teachers(
Tno CHAR(8) PRIMARY KEY,
Tname VARCHAR(10) NOT NULL,
Age TINYINT CHECK(Age BETWEEN 25 AND 65) )
插入语句中,不能正确执行的是( )。
A.
INSERT INTO Teachers VALUES('T100','张宏',NULL)
B.
INSERT INTO Teachers(Tno,Tname,Age) VALUES('T100','张宏',30)
C.
INSERT INTO Teachers(Tno,Tname) VALUES('T100','张宏')
D.
INSERT INTO TeachersVALUES('T100','张宏')
参考答案:
佳题速递: