zoukankan      html  css  js  c++  java
  • 表的删除和修改

    表的修改操作:

    alter table score add type nchar(1) null //为score表新添加一个属性type,属性值为 type nchar(1) null

    alter table score alter column type nchar(2) //修改score表的type属性的类型为nchar(2)

    alter table score add check (type in ('选修','重修','必修')) //为score表的type属性添加一个限定的选项范围

    alter table score drop column type//删除score表中的type属性

    表的删除操作:

    drop table student

  • 相关阅读:
    605
    603
    509
    7-5
    6-5
    5-6
    5-3
    5-4
    5-5
    4-12
  • 原文地址:https://www.cnblogs.com/Stakes-ds/p/8454446.html
Copyright © 2011-2022 走看看