实体完整性定义(续) [例1将 Student表中的Sno属性定义为码 (1在列级定义主码 CREATE TABLE Student (Sno CHAR(9)PRIMARY KEY Sname CHAR(20)NOT NULL, SseX CHAR(2) Sage SMALLINT, Sdept CHAR(20)); An Introduction to Database SystemAn Introduction to Database System 实体完整性定义(续) [例1] 将Student表中的Sno属性定义为码 (1)在列级定义主码 CREATE TABLE Student (Sno CHAR(9) PRIMARY KEY, Sname CHAR(20) NOT NULL, Ssex CHAR(2) , Sage SMALLINT, Sdept CHAR(20));