当前位置:网站首页>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中,有多少张表就复制多少次。
效果如下
边栏推荐
- Intranet learning notes (5)
- Specific list of regular and safe domestic stock trading account opening
- AssertionError: CUDA unavailable, invalid device 0 requested
- Taishan Office Technology Lecture: a simple study of Chinese punctuation in vertical arrangement
- How to choose a regular and safe foreign exchange trading platform?
- Day 04 - file IO
- Cusdis - lightweight, privacy first open source comment system | chain of the city
- 华为、阿里等大厂程序员真的好找对象吗?
- 谈谈飞书对开发工作的优势 | 社区征文
- 年已过半,年终立的Flag实现了几个?
猜你喜欢

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

Rod and Schwartz cooperated with ZhongGuanCun pan Lianyuan Institute to carry out 6G technology research and early verification

【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
![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]

一线城市软件测试工资——你拖后腿了吗

左手梦想 右手责任 广汽本田不光关注销量 还有儿童安全

探索C语言程序奥秘——C语言程序编译与预处理

门店无线音箱造假?索尼回应:产品预留了有线连接接口 复杂场景下可以使用

MeterSphere开源持续测试平台与阿里云云效DevOps的集成

Use of hashcat
随机推荐
DDD concept is complex and difficult to understand. How to design code implementation model in practice?
Redistemplate operates redis. This article is enough (I) [easy to understand]
Day 04 - file IO
【Proteus仿真】Arduino UNO+数码管显示4x4键盘矩阵按键
保险APP适老化服务评测分析2022第06期
Ps5 connected to oppo K9 TV does not support 2160p/4k
Redis 那些事
字符串数组转换为list集合
进入阿里做测试员遥不可及?这里或许有你想要的答案
write a number of lines to a new file in vim
MOS tube related knowledge
内网学习笔记(5)
創新藥二級市場審餅疲勞:三期臨床成功、產品獲批也不管用了
Kaggle 专利匹配比赛金牌方案赛后总结
Please run IDA with elevated permissons for local debugging.
内网学习笔记(6)
Intranet learning notes (7)
中信证券手机开户是靠谱的吗?安全吗
Android物联网应用程序开发(智慧园区)—— 设置传感器阈值对话框界面
Preg in PHP_ How to replace variable data