什么时候使用视图? [英] When to use view?

查看:113
本文介绍了什么时候使用视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

现在,我正在处理一个社交网络项目.数据库很大.因此,我想设计一个具有完整规范化形式的数据库.
我了解视图,但有一些与视图有关的问题.

1)不同类型的视图?

2)要创建视图,我们必须编写类似创建视图
[view name] from ...."是查询的一种类型,因此我们可以直接在数据库表上触发查询,而无需创建视图?

3)如果我们创建一个永久视图,那么与视图匹配的数据将存储在磁盘中,因此,数据在真实数据库表中存储两次,在视图中存储一次?

4)运行时视图的范围?如何创建运行时视图?

Hello,

right now I am working with one social network project. The database is big. So, I want to design a database with a complete normalize form.
I know about view but I have some questions related to view.

1)Different types of view?

2)To create a view we have to write query like "create view
[view name]from...." so, it is one type of query so instead of creating view we can directly fire query on database table?

3)If we create a permanent view then the data which match with view are stored in disk so, the data are stored twice once in real database table and once in view?

4)The scope of run time view? How to create run time view?

推荐答案

在这里

SQL Server中的视图 [
Here you go

Views in SQL Server[^]


这篇关于什么时候使用视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆