当前位置:网站首页>ProcessOn制作ER过程(自定义)
ProcessOn制作ER过程(自定义)
2022-06-24 22:42:00 【Eistert】
1 查出相关表的列名、注释、数据类型
1.1 SQL1
SELECT
a.OWNER 模式,
a.TABLE_NAME 表名,
a.COLUMN_NAME 列名,
a.DATA_TYPE 数据类型,
a.DATA_LENGTH 长度,
a.NULLABLE 非空,
--(CASE WHEN a.NULLABLE = 'N' THEN 'Y' ELSE 'N' END) 非空,
b.COMMENTS 注释
FROM
ALL_TAB_COLUMNS a
LEFT JOIN ALL_COL_COMMENTS b ON
a.OWNER = b.OWNER
AND a.TABLE_NAME = b.TABLE_NAME
AND a.COLUMN_NAME = b.COLUMN_NAME
WHERE
a.OWNER = '数据库名/schema名'
AND
a.TABLE_NAME = '表名'
1.2 SQL2
SELECT
-- a.TABLE_NAME 表名,
a.COLUMN_NAME 列名,
b.COMMENTS 注释,
a.DATA_TYPE 数据类型
-- a.DATA_LENGTH 长度,
-- a.NULLABLE 非空,
--(CASE WHEN a.NULLABLE = 'N' THEN 'Y' ELSE 'N' END) 非空,
FROM
user_tab_columns a
LEFT JOIN USER_COL_COMMENTS b ON a.TABLE_NAME = b.TABLE_NAME
AND a.COLUMN_NAME = b.COLUMN_NAME
WHERE
a.TABLE_NAME = '表名'
ORDER BY a.COLUMN_ID



2 将这TXT文档复制到processon中,有多少张表就复制多少次。
效果如下
边栏推荐
- 困牛排序(寒假每日一题 40)
- Which account is safer and better for access letter
- write a number of lines to a new file in vim
- 【Proteus仿真】Arduino UNO+继电器控制照明设备
- Logminer database log mining
- 非凸联合创始人李佐凡:将量化作为自己的终身事业
- EasyCVR平台EHOME协议接入,视频播放出现断流是什么原因?
- Left hand dreams right hand responsibilities GAC Honda not only pays attention to sales but also children's safety
- 同花顺是正规平台吗?同花顺开户安全吗
- 【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
猜你喜欢

DDD concept is complex and difficult to understand. How to design code implementation model in practice?
![Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]](/img/c9/afc03afd477bbfdd3c0dc54bacfd2d.png)
Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]

入坑机器学习:一,绪论

Redis 那些事

折叠屏将成国产手机分食苹果市场的重要武器

华为、阿里等大厂程序员真的好找对象吗?

Sumati gamefi ecological overview, element design in the magical world

Dataease template market officially released

罗德与施瓦茨与中关村泛联院合作开展6G技术研究与早期验证
![Full arrangement ii[duplicate removal of the same elements + standard backtracking]](/img/d3/93ddb49e580be60be4f056f141b782.png)
Full arrangement ii[duplicate removal of the same elements + standard backtracking]
随机推荐
DDD concept is complex and difficult to understand. How to design code implementation model in practice?
Intranet learning notes (5)
3年测试经验,连简历上真正需要什么都没搞明白,张口就要20k?
实战攻防演练中的四大特点
进入阿里做测试员遥不可及?这里或许有你想要的答案
文件系统 -- 磁盘基础知识和FAT32文件系统详细介绍
Hashcat 的使用
How to choose a regular and safe foreign exchange trading platform?
write a number of lines to a new file in vim
[day 26] given the ascending array nums of n elements, find a function to find the subscript of target in nums | learn binary search
困牛排序(寒假每日一题 40)
Is GF futures safe? What do I need to open an account?
Constant current circuit composed of 2 NPN triodes
linux上查看mysql的密码_Linux下MySQL忘记密码「建议收藏」
[leetcode] 11. Container with the most water
常用的软件测试工具清单,请查收。
Numerical scheme simulation of forward stochastic differential equations with Markov Switching
leetcode:2104. Subarray range and
Integration of metersphere open source continuous testing platform and Alibaba cloud cloud cloud efficient Devops
Google browser console F12 how to set the Chinese / English switching method, we must see the last!!!