当前位置:网站首页>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
边栏推荐
- oracle清理含有引用分区的表的数据库磁盘空间
- ClickHouse 笔记1 | 简介、特点 | 基于CentOS7系统的安装与使用 | 常用数据类型 | MergeTree 表引擎 | SQL操作
- Quickly update the information in a field in kettle
- Simple rotation chart
- Essay: college entrance examination
- A small cotton padded jacket with air leakage
- C语言 pthread_cleanup_push()和pthread_cleanup_pop()函数(用于临界资源程序段中发生终止动作后的资源清理任务,以免造成死锁,临界区资源一般上锁)
- Federal Reserve SR 11-7: Guidance on model risk management - Wanzi collection
- flink1.14 sql基础语法(一) flink sql表查询详解
- Codeforces Round #810 (Div.2) A-C
猜你喜欢

2022 0726 Gu Yujia's study notes

Understanding and learning of properties class and properties configuration file

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

Zabbix: 将收集到值映射为易读的语句

在kettle使用循环来处理表中的数据

TCP/IP协议分析(TCP/IP三次握手&四次挥手+OSI&TCP/IP模型)

Prior Attention Enhanced Convolutional Neural Network Based Automatic Segmentation of Organs at Risk

Use the PIP command to switch between different mirror sources

Cadence(十一)丝印调整和后续事项

利用 Amazon DynamoDB 和 Amazon S3 结合 gzip 压缩,最大化存储玩家数据
随机推荐
STM32_ Find the cause of entering hardfault_ Handler's function
mysql备份策略
Shell condition test, judgment statement and operator of shell system learning
Bash: create a function that returns a Boolean value
sql语句批量更新 时间减去1天
Record a pit dug by yourself~
IO中节点流和处理流的理解学习
Turn off the auto start function of Oracle service in centos7
User unlock sm04 sm12
Drconv pytorch is changed to the same size of output and input
Okaleido生态核心权益OKA,尽在聚变Mining模式
Zabbix: map collected values to readable statements
利用 Amazon DynamoDB 和 Amazon S3 结合 gzip 压缩,最大化存储玩家数据
Advanced IO outline
Using docker in MAC to build Oracle database server
Use Popen to execute a command and get the return result
电子量产项目框架--基本思想
Basic functions and collections of guava
C common function integration-3
js做一个红绿灯