当前位置:网站首页>How to get DDL information of an object
How to get DDL information of an object
2022-07-27 07:36:00 【Wow haha】
How to get the object's DDL Information
Other answers 1:
V8R6 Similar offers oracle dbms_metadata My bag , Used to get the definition information of the object .
test=# select dbms_metadata.GET_DDL('table','t1'); get_ddl -------------------------- CREATE TABLE PUBLIC.T1( + ID INTEGER + ) + test=# select dbms_metadata.get_index_ddl('ind_t1','public'); get_index_ddl --------------------------------------------------- CREATE INDEX ind_t1 ON public.t1 USING btree (id)+ |
Other answers 2:
oracle:
1、 Check the definition and writing of database tables :
select dbms_metadata.get_ddl(‘TABLE’,‘TABLENAME’,‘USERNAME’) from dual;
2、 View the index SQL
select dbms_metadata.get_ddl(‘INDEX’,‘INDEXNAME’,‘USERNAME’) from dual;
3、 Check out the SQL
SELECT DBMS_METADATA.GET_DDL(‘CONSTRAINT’,‘CONSTRAINTNAME’,‘USERNAME’) FROM DUAL;
I hope it helps you
边栏推荐
- 连接MySQL时报错:Public Key Retrieval is not allowed 【解决方法】
- Okaleido ecological core equity Oka, all in fusion mining mode
- (2022 Niuke multi school III) j-journey (Dijkstra)
- Routing between VLANs (explanation + verification)
- Flynk de duplication (2) solve the hot issues in the process of flynk and flynk SQL de duplication
- Tcp/ip protocol analysis (tcp/ip three handshakes & four waves + OSI & TCP / IP model)
- Using soci to connect Oracle with PostgreSQL and SQLite on rhel8
- C语言实现猜数字小游戏项目实战(基于srand函数、rand函数,Switch语句、while循环、if条件判据等)
- Plato Farm有望通过Elephant Swap,进一步向外拓展生态
- Oracle composite query
猜你喜欢

Gossip: talk with your daughter about why you should learn culture lessons well

Mysql: increase the maximum number of connections

Quickly update the information in a field in kettle

(2022杭电多校三)1009.Package Delivery(贪心)

js正则表达式实现每三位数字加一个逗号

Temperature and humidity measurement and display device based on Arduino

单臂路由(讲解+实验)
![Multithreading [preliminary - Part 1]](/img/e6/5808bbdb8368bc780bde4c151e7cd7.png)
Multithreading [preliminary - Part 1]

C language implementation of guessing numbers Games project practice (based on srand function, rand function, switch statement, while loop, if condition criterion, etc.)

Actual combat of flutter - Request encapsulation (I)
随机推荐
Codeforces Round #810 (Div.2) A-C
Array method and loop in JS
C common function integration-3
C语言 pthread_cleanup_push()和pthread_cleanup_pop()函数(用于临界资源程序段中发生终止动作后的资源清理任务,以免造成死锁,临界区资源一般上锁)
Use Amazon dynamodb and Amazon S3 combined with gzip compression to maximize the storage of player data
flink去重(二)解决flink、flink-sql去重过程中的热点问题
ARP广播实践案例
A priority SQL problem
UI gesture actions of uiautomator common classes
Prior Attention Enhanced Convolutional Neural Network Based Automatic Segmentation of Organs at Risk
Zabbix: map collected values to readable statements
Pg_ relation_ Size question
VLAN trunk实验
js正则表达式实现每三位数字加一个逗号
The solution of using sqlplus to display Chinese as garbled code
临界区(critical section 每个线程中访问 临界资源 的那段代码)和互斥锁(mutex)的区别(进程间互斥量、共享内存、虚拟地址)
Cadence(十一)丝印调整和后续事项
DRConv-pytorch改称输出和输入一样的尺寸
Clickhouse notes 1 | introduction, features | installation and use based on centos7 system | common data types | mergetree table engine | SQL operation
Excuse me, MySQL timestamp (6) using flick SQL is null. Is there a way to deal with this