kc第四讲—数据库完整性与安全性.pptVIP

  • 4
  • 0
  • 约1.96千字
  • 约 30页
  • 2017-04-23 发布于四川
  • 举报
kc第四讲—数据库完整性与安全性

第4讲: (第4章、第8章) 数据库的完整性与安全性 重庆大学计算机学院;第4讲:数据库的完整性与安全性;特殊数据类型及用途;定义新类型(SQL99):create type construct in SQL creates user-defined type create type Dollars as numeric (12,2) final -并非有意义可忽略 create type Pounds as numeric (12,2) final 特点:强制类型!把Dollars类型的值赋予Pounds类型的变量时导致编译出错 定义新的域类型(SQL92) :create domain construct in SQL-92 creates user-defined domain types create domain person_name char(20) not null 特点:非强制类型!允许把一个域类型的值赋予另一个域类型 可以指定完整性约束! Types and domains are similar. 不同的是 Domains can have constraints, such as not null, specified on them.;Large objects (photos, videos, C

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档