当前位置:网站首页>Kingbasees database administrator's Guide -- 15.4 Data dictionary view of views, synonyms, and sequences
Kingbasees database administrator's Guide -- 15.4 Data dictionary view of views, synonyms, and sequences
2022-07-21 14:54:00 【Thousands of sails passed by the side of the sunken boat_】
You can query the specified data dictionary view , Learn about views 、 Synonym and sequence information .
The following view records the display about the view 、 Synonym and sequence information :
View | describe |
---|---|
DBA_VIEWS, ALL_VIEWS, USER_VIEWS | DBA Views describe all views in the database .ALL Views are restricted to the views that the current user can access .USER Views are limited to those owned by the current user . |
DBA_SYNONYMS, ALL_SYNONYMS, USER_SYNONYMS | A view that describes synonyms . |
DBA_SEQUENCES, ALL_SEQUENCES, USER_SEQUENCES | View describing the sequence . |
View as a database object , The relevant information is stored in the data dictionary .
Sequence as a database object , The relevant information is stored in the data dictionary .
Synonyms as a database object , The relevant information is stored in the data dictionary .
Parent theme : Manage views 、 Sequences and synonyms
15.4.1. Query of view information
View as a database object , The relevant information is stored in the data dictionary .
There are three views related to views :
USER_VIEWS, View information about the current user
DBA_VIEWS, All view information in the system
ALL_VIEWS, All view information that the current user can access
For example, to query a view stu_age_view Information about , You can perform the following SELECT sentence :
SELECT text FROM user_views WHERE view_name = 'stu_age_view';
among text What is stored in is what is used when creating views SELECT sentence .
Parent theme : View 、 Data dictionary view of synonyms and sequences
15.4.2. Query of sequence information
Sequence as a database object , The relevant information is stored in the data dictionary .
There are three views related to sequences :
USER_SEQUENCES, Sequence information about the current user
DBA_SEQUENCES, All sequence information in the system
ALL_SEQUENCES, All sequence information that the current user can access
For example, if you need to know stu_sequence Sequence information , You can perform the following SELECT sentence :
SELECT min_value,max_value,increment_by,last_number,cycle_flag FROM dba_sequences WHERE sequence_name = 'stu_sequence'; -- perhaps SELECT * FROM dba_sequences WHERE sequence_name = 'stu_sequence';
Parent theme : View 、 Data dictionary view of synonyms and sequences
15.4.3. Query of synonym information
Synonyms as a database object , The relevant information is stored in the data dictionary .
There are three views related to synonyms :
USER_SYNONYMS, Synonym information about the current user
DBA_SYNONYMS, All synonym information in the system , Include synonyms created by each user
ALL_SYNONYMS, All synonym information that the current user can access , Including private and common synonyms
To query the synonyms created by the current user , Each represents the object of that user , You can perform the following SELECT sentence :
SELECT synonym_name,table_name,table_owner FROM user_synonyms;
If you want to query in the whole database system User created synonyms , You can perform the following SELECT sentence :
SELECT synonym_name,table_name,table_owner FROM dba_synonyms; WHERE owner='system';
SELECT synonym_name,table_name,table_owner FROM dba_synonyms; WHERE owner='PUBLIC';
Parent theme : View 、 Data dictionary view of synonyms and sequences
边栏推荐
- Performance tuning of golang language
- Hutoo --- 日期时间工具-DateUtil
- 深拷贝函数
- 使用Express写接口
- 王炸动力 创富快人一步!祥菱大熊猫2.0动力产品正式上市
- Rust语言- 元组 ( tuple )
- [200 opencv routines] 235 Principal component analysis for feature extraction (sklearn)
- How can the reading club not be an emotional hostage?
- Modularization of node
- Sword finger offer 57 And are two numbers of S
猜你喜欢
自定義類型:結構體(一)
Do you really know the influence of AC coupling capacitance?
SPARK Parquet嵌套类型的向量化支持以及列索引(column index)
When you delete it, you delete it. This kind of capacitance should not have appeared
How much do you know about the real results if you don't calibrate before the test?
Sword finger offer 58 - I. flip word order, strip() function
leetcode:42. 接雨水
leetcode:689. 三个无重叠子数组的最大和
Intel汇编语言程序设计学习-第五章 过程-上
全栈开发实战 | SSM框架整合完整教程
随机推荐
It is reported that Apple continues to deliver products to the Russian market: it does not sell them, but only for return and exchange
Indiscriminate use of "termination", the signal pours on the street
SPARK Parquet嵌套类型的向量化支持以及列索引(column index)
Web3流量聚合平台Starfish OS,给玩家元宇宙新范式体验
leetcode:407. 接雨水 II
js对象获取属性的方法(.和[]方式)
【JS】你不知道的 console 命令
Sword finger offer 21 Adjust the array order so that odd numbers precede even numbers
高等数学(第七版)同济大学 习题3-2 个人解答
[C language] file related operations
FS module of node
全棧開發實戰 | SSM框架整合完整教程
On node Install and configure MySQL module in JS project and add, delete, modify and check
有些测试,还真不是你够努力就能测出来的
王炸动力 创富快人一步!祥菱大熊猫2.0动力产品正式上市
QT OpenGL sets two different colors for two cubes
从fail到pass,DDR调试到底经历了什么?
Sword finger offer 57 And are two numbers of S
Sword finger offer 25 Merge two sorted linked lists
互联网行业的中年危机是35岁这分水岭