如果想给某字段sage施加列值唯一的约束,应该如何表示?
A、Sage smallint not null
B、Sage smallint unique
C、Sage smallint check(sage>=18)
D、Sage smallint primary key
A、Sage smallint not null
B、Sage smallint unique
C、Sage smallint check(sage>=18)
D、Sage smallint primary key
B.唯一性约束指定的列可以有null属性
C.主键也强制执行唯一性,但主键不允许空值,故主键约束强度大于唯一性约束
D.主键列可以设定唯一性约束
A、Sage smallint not null
B、Sage smallint unique
C、Sage smallint check(sage>=18)
D、Sage smallint primary key
A、Create assertion asse1 check(3>=all( select count(*) from sc group by sno))
B、Create assertion asse1 check(3>=any( select count(*) from sc group by sno))
C、Create assertion asse1 check(3>=some( select count(*) from sc group by sno))
D、Create assertion asse1 check(3>= select count(*) from sc group by sno)
A、1
B、5
C、10
D、15
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!