实验六管理存储过程.docVIP

  • 1
  • 0
  • 约5.56千字
  • 约 6页
  • 2019-07-13 发布于湖北
  • 举报
实验六 存储过程与触发器 一、存储过程 【创建存储过程】: CREATE PROCEDURE [OWNER].[PROCEDURE NAME] AS SQL块 如:Use pubs Go Create procedure author_information As select au_lname,au_fname,title,pub_name from authors a join titleauthor ta on a.au_id=ta.au_id join titles t on t.title_id=ta.title_id join publishers p on t.pub_id=p.pub_id Go 【管理存储过程】: 可以使用sp_helptext命令查看创建存储过程的文本信息。 Use pubs Go Sp_helptext author_information Go 可以用sp_help查看存储过程的一般信息。 Use pubs Go Sp_help author_information Go 可以使用系统存储过程sp_rename修改存储过程的名字。 Use pubs Go Sp_rename author_information ,authors_in

文档评论(0)

1亿VIP精品文档

相关文档