当前位置:网站首页>GBASE 8s的数据视图
GBASE 8s的数据视图
2022-06-25 03:59:00 【八珍豆腐】
视图是由存储在数据库中的查询定义的虚拟表(Virtual Table)。视图所对应的查询称为视图定义,它规定了如何从一个或几个基本表(Base Table)中导出视图。在数据库中只存放视图的定义,不存放视图对应的数据,数据仍存放在导出视图的基本表中。修改基本表中的数据,相应视图中的数据也随之改变。视图就像一个窗口,透过它可以看到数据库中自己感兴趣的数据。
在SQL 中,定义视图是设计数据库外模式的基本手段。视图能够为数据库系统提供以下优势。
1.数据的逻辑独立性
当数据库的模式结构发生变化时,只需调整外模式到模式的映射关系,而无须改变外模式的定义。这样做的目的是保证用户的应用程序不必重新编写。视图作为虚拟表,其定义实际上就是外模式到模式的映射。有了视图,就可以在不改变基本表结构的前提下,仅通过修改视图的定义就能够更新这种映射关系,从而实现数据的逻辑独立性。
2.用户操作的简化
在实际的数据库系统中,全部基本表的结构和联系往往很复杂。通常不同部门的用户只对数据库中的一部分数据感兴趣。视图机制正好适应了用户的这种需要。为不同的用户定义各自的视图,使用户可以将注意力集中在所关心的数据上,用户所做的只是对虚拟表的查询,而这个虚拟表是怎样得到的,用户无须了解。
3.数据的安全保护
视图机制还能够为数据提供一定的安全保护功能,只给用户访问视图的权限,对用户保密的基本表不为其定义视图。这样用户只能透过视图访问到其所需的那部分数据,而不会影响到其他数据。
边栏推荐
- Laravel document sorting 2. Route related
- Flutter Builder & FutureBuilder组件
- Watch out for the stolen face! So many risks of face recognition used every day?
- mongodb集群
- Numpy NP tips: squeeze and other processing of numpy arrays
- SQL, CTE, FLG CASE问题
- Synchronous and asynchronous functions (callback function, promise, generator, async/await)
- Simple integration of client go gin -update
- Lecture record: new application of inertial navigation - inertial measurement
- Simple integration of client go gin 11 delete
猜你喜欢

How many images can opencv open?

navicat可不可以直接操作安卓数据库SQLite

Summary of various problems encountered by cocos2d-x

Cesium graphic annotation circle, square, polygon, ellipse, etc

Error 1062 is reported during MySQL insertion, but I do not have this field.
![L'épée leetcode fait référence au chemin leetcode de l'offre II 091 pour peindre la maison [planification dynamique] heroding](/img/ad/69fce7cf064479a0ddd477fb935de2.png)
L'épée leetcode fait référence au chemin leetcode de l'offre II 091 pour peindre la maison [planification dynamique] heroding

论文阅读《LSD-SLAM: Large-Scale Direct Monocular SLAM》

地方/园区产业规划之 “ 如何进行产业定位 ”

Numpy NP tips: use OpenCV to interpolate and zoom the array to a fixed shape cv2 resize(res, dsize=(64, 64), interpolation=cv2. INTER_ CUBIC)

Siddhartha: the book of life can be regurgitated frequently
随机推荐
Anaconda安装+TensorFlow安装+Keras安装+numpy安装(包含镜像和版本信息兼容问题)
What is persistence? What are RDB and AOF in redis persistence?
Simple integration of client go gin -update
Failed to install redis interface
mysql的tinyint字段类型判断的疑惑
Anaconda installation +tensorflow installation +keras installation +numpy installation (including image and version information compatibility issues)
Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding
Hello CTP (IV) - CTP transaction API
Introduction to intstream API
2. play the chromatic harmonica
1. first knowledge of chromatic harmonica
95% 程序员都在这里摸鱼……
BSC smart contract dividend mainstream currency | including marketing wallet | deflation | reflow | dividend free token | available for direct deployment
微信小程序父子组件之间传值
Smart wind power: operation and maintenance of digital twin 3D wind turbine intelligent equipment
Finereport displays and hides column data according to conditions
95% of programmers fish here
Laravel document sorting 1. Installation and Preliminary Configuration
Cesium drag 3D model
i. Max development board learning record