第3篇 补充内容Transact-SQL语言.pptVIP

  • 5
  • 0
  • 约1.99万字
  • 约 72页
  • 2017-06-18 发布于湖北
  • 举报
Transact-SQL语言 一.T-SQL语言简介 T-SQL系统数据类型(1/2) T-SQL系统数据类型(2/2) SQL Server中的批 存储过程调用 EXECUTE HumanResources.usp_GetEmployees Ackerman, Pilar; -- Or EXEC HumanResources.usp_GetEmployees @lastname = Ackerman, @firstname = Pilar; GO -- Or EXECUTE HumanResources.usp_GetEmployees @firstname = Pilar, @lastname = Ackerman; GO -- Or, if this procedure is the first statement within a batch: HumanResources.usp_GetEmployees Ackerman, Pilar; 10.1 触发器的基本概念和优点 概念: 触发器是一种特殊的过程,不带参数,不被用户和程序调用,只能由用户对DB中表的操作(即:插入、删除和修改3种操作)触发。也就是说,它是由操作激发的过程。因此,可利用触发器来维护表间的数据一致性。 特征: 与表紧密联系,离开了表它将不复存在(这点与约束十分类似)。 触发器只能在表上建立,且一张表最

文档评论(0)

1亿VIP精品文档

相关文档