当前位置:网站首页>Data view for gbase 8s
Data view for gbase 8s
2022-06-25 04:33:00 【Eight delicacies tofu】
Views are virtual tables defined by queries stored in the database (Virtual Table). The query corresponding to a view is called a view definition , It specifies how to start from one or several basic tables (Base Table) Exporting views from . Only the definition of the view is stored in the database , Do not store the data corresponding to the view , The data is still stored in the basic table of the exported view . Modify the data in the basic table , The data in the corresponding view also changes . The view is like a window , Through it, you can see the data you are interested in in in the database .
stay SQL in , Defining views is the basic means to design out of database schemas . Views can provide the following advantages for database systems .
1. Logical independence of data
When the schema structure of the database changes , Just adjust the mapping relationship from external schema to schema , There is no need to change the definition of external mode . The purpose of this is to ensure that the user's application does not have to be rewritten . View as virtual table , Its definition is actually the mapping from external schema to schema . With the view , Without changing the basic table structure , This mapping relationship can be updated only by modifying the definition of the view , So as to realize the logical independence of data .
2. Simplification of user operation
In a real database system , The structure and connection of all basic tables are often very complex . Usually users in different departments are only interested in a part of the data in the database . The view mechanism just meets the needs of users . Define views for different users , Enables users to focus on the data they care about , All the user does is query the virtual table , How to get this virtual table , Users do not need to understand .
3. Data security protection
The view mechanism can also provide certain security protection functions for data , Only give users access to views , Basic tables that are confidential to users do not define views for them . In this way, users can only access the part of data they need through the view , Without affecting other data .
边栏推荐
- GBASE 8s存储过程流程控制
- Acmstreamopen return value problem
- Doubts about judging the tinyint field type of MySQL
- IntStream API介绍
- What is persistence? What are RDB and AOF in redis persistence?
- Unity Quad culls shaders with back faces and transparent parts
- i. Max development board learning record
- EasyRecovery15非常好用的电脑数据恢复软件
- 讲座记录《捷联惯导解算的历史及发展》
- CTF_ Web: file contains pseudo protocol with PHP
猜你喜欢

UCLA | 用于黑盒优化的生成式预训练

A detailed summary of TCP connection triple handshake

CTF_ Web:php weak type bypass and MD5 collision

Lecture record: history and development of strapdown inertial navigation solution

深度学习——几种学习类型

讲座记录《多种空间大地测量技术的数据处理方法和应用》

Unit test coverage

论文笔记: 多标签学习 ESMC (没看懂, 还没写出来, 暂时放这里占个位置)

Can Navicat directly operate the Android database SQLite

Acmstreamopen return value problem
随机推荐
Doubts about judging the tinyint field type of MySQL
Detailed explanation of flex attributes in flex layout
CTF_ Web: Advanced questions of attack and defense world expert zone WP (9-14)
CTF_ Web: file contains pseudo protocol with PHP
1. Phase II of the project - user registration and login
LeetCode 劍指Offer II 091 粉刷房子[動態規劃] HERODING的LeetCode之路
Easyrecovery15 very easy to use computer data recovery software
The yii2 debug toolbar is missing
Flutter Builder & futurebuilder components
Communication problems in parent and child components of uniapp
Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding
Laravel document sorting 6. Response
什么是持久化?redis 持久化中的RDB和AOF是什么?
Retrofit 源码分析
GBASE 8s 索引R树
"Renaissance" in the digital age? The bottom digital collection makes people happy and sad
cnpm : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
Smart contract learning materials
Gbase 8s index R tree
Laravel document sorting 10. Request life cycle