Welcome![Sign In][Sign Up]
Location:
Search - sql server create vi

Search list

[SQL Serverviewcreate-sql

Description: 一、实验目的 1)理解视图的概念。 2)掌握创建视图的方法。 3)掌握更改视图的方法。 4)掌握用视图管理数据的方法。 二、实验内容 3、用T-SQL语言创建、管理视图 (以下题目需提交) (1)创建视图 1)创建一个名为stuview2的水平视图,从数据库XSGL的student表中查询出性别为“男”的所有学生的资料。并在创建视图时使用with check option。(注:该子句用于强制视图上执行的所有修改语句必须符合由Select语句where中的条件。) T-SQL语句为: Create view stuview2 As Select * From student Where sex= 男 -1, experimental purposes 1) understand the concept of view. 2) to master the method to create the view. 3) control to change the view method. 4) The master with the view of management data. Second, the contents of three experiments, using T-SQL language to create, manage view (the following topics should be submitted) (1) create a view of a) Create a file called stuview2 level view of the student table from the database query XSGL the gender as " male " All the students information. Used in the creation of the view with check option. (Note: This clause is used to force all the modifications performed on the view must be consistent with statements by the Select statement where the condition.)
Platform: | Size: 200704 | Author: kice | Hits:

CodeBus www.codebus.net