• 2022-06-25
    中国大学MOOC: 在设计表StudentInfo时,Sage列的值只能在18-25之间,需要给Sage列设置( )约束。
  • CHECK

    内容

    • 0

      在sage(年龄)列上创建约束,要求Sage的值在18至22岁之间,约束名Sage_CK。请写出对应的完整性命名子句___________________________________。

    • 1

      “SageTINYINTCHECK(Sage>=18ANDSage<=60)”限定Sage的取值只能在18到60之间。()

    • 2

      sage列的取值范围限定为6~50之间,正确的表达式是( ) A: sage>=6 and sage<=50 B: sage>=6 and <=50 C: sage>=6 or sage<=50 D: sage>=6 or <=50

    • 3

      如果想给某字段sage施加取值至少18的约束,应该如何表示? A: Sage smallint not null B: Sage smallint unique C: Sage smallint check(sage>=18) D: Sage smallint primary key

    • 4

      如果想给某字段sage施加取值至少18的约束,应该如何表示?( ) A: Sage smallint check(sage>=18) B: Sage smallint not nul C: Sage smallint unique D: Sage smallint primary key