Alter_table 的种操作.pdfVIP

  • 1
  • 0
  • 约9.82千字
  • 约 16页
  • 2017-06-05 发布于河南
  • 举报
Alter_table 的种操作

Alter table 的13 种操作和move 1、 增加/删除 字段 2 、 增加/删除 主索引 3、 删除 普通索引 4 、 增加/删除 候选索引 5、 增加/删除 有效性规则 6、 增加/删除 默认值 7、 建立永久联系 8、 字段的默认值设置为null 1)增加/删除 字段 Alter table student add 籍贯 c(30) Alter table student drop 籍贯 2) 增加/删除 主索引 Alter table student alter 学号 c(4) primary key Alter table student alter 学号 c(4) drop primary key Close database 先建立一个普通索引 Use student Index on 姓名 tag xm 3)删除 普通索引 Alter table student drop foreign key tag xm 4 )增加/删除 候选索引 Alter table student add unique 姓名 tag xm

文档评论(0)

1亿VIP精品文档

相关文档