当前位置:网站首页>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 .
边栏推荐
- Finereport (sail soft) handling the problem that the histogram data label is blocked
- GBASE 8s中DELIMIDENT环境变量的使用
- sql_ mode=only_ full_ group_ By's pit
- Sourcetree pulls the code and prompts to fill in authentic, but the configuration cannot change the user
- CTF_ Web: advanced problem WP (5-8) of attack and defense world expert zone
- GBASE 8s 索引B+树
- Unity Quad culls shaders with back faces and transparent parts
- Easyrecovery15 very easy to use computer data recovery software
- PHP encapsulates curl to send get and post request methods, and uses
- 记录小知识点
猜你喜欢

Lecture record: history and development of strapdown inertial navigation solution

CTF_ Web: Learn flask template injection (SSTI) from 0

Anaconda installation +tensorflow installation +keras installation +numpy installation (including image and version information compatibility issues)

Shutter fittedbox component
![LeetCode 剑指Offer II 091 粉刷房子[动态规划] HERODING的LeetCode之路](/img/ad/69fce7cf064479a0ddd477fb935de2.png)
LeetCode 剑指Offer II 091 粉刷房子[动态规划] HERODING的LeetCode之路

Basic use of OBS browser+ browser

Record small knowledge points

Coinlist queuing tutorial to improve the winning rate

UCLA | generative pre training for black box optimization

记录小知识点
随机推荐
kenlm
CTF_ Variable coverage in web:php
彻底理解数据库事务
1. Phase II of the project - user registration and login
Package for gbase 8s
CTF_ Web: Advanced questions of attack and defense world expert zone WP (1-4)
OBS Browser+浏览器的基本使用
马斯克发布人形机器人,AI对马斯克为什么意义重大?
How to screen out words related to products and eliminate invalid words accurately
GBASE 8s存储过程流程控制
95% of programmers fish here
CTF_ Web: Advanced questions of attack and defense world expert zone WP (9-14)
Gbase 8s stored procedure execution and deletion
CTF_ Web: deserialization learning notes (I) classes and objects in PHP
GBASE 8s存儲過程語法結構
Flutter Builder & futurebuilder components
SQL, CTE, flg case problems
Trigger for gbase 8s
什么是存储引擎以及MySQL常见的三种数据库存储引擎
GBASE 8s的多线程结构