当前位置:网站首页>Powerdesign reverse wizard such as SQL and generates name and comment
Powerdesign reverse wizard such as SQL and generates name and comment
2022-07-03 09:23:00 【Great you don't know】
First step : Modify the export SQL
open Power Designer , choice Database->Edit Current DBMS… Open the dialog box , find Script->Objects->Table->SqlListQuery, Modify after opening value Medium sql sentence , The results are as follows :
{OWNER, TABLE, TABLE_TYPE, COMMENTS}
select
t.owner,
t.table_name,
c.table_type,
c.comments
from
sys.all_all_tables t,
sys.USER_TAB_COMMENTS c
where
not exists (select 1 from sys.all_mviews s where s.owner = t.owner and t.table_name in (s.mview_name, s.update_log))
and t.iot_name is null
and nvl(t.dropped, 'NO') = 'NO'
and t.table_name = c.table_name(+)
[ and t.table_name=%.q:TABLE%]
[ and t.owner=%.q:SCHEMA%]
order by
t.owner, t.table_name
The second step : Set up code Do not follow name change
Choose from the menu Tools->General Options…, Find... In the open window Dialog, Get rid of Name to Code mirroring Front hook , Click on OK.
The third step : Use the script to name Set to comments
Choose from the menu Tools->Excute Commands -> Edit/Run Scripts… Paste the following script in the open window , Click on Run Button .
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl 'the current model
'get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model"
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model."
Else
ProcessFolder mdl
End If
'This routine copy name into code for each table, each column and each view
'of the current folder
Private sub ProcessFolder(folder)
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
if len(tab.comment) <> 0 then
tab.name = tab.comment
end if
On Error Resume Next
Dim col 'running column
for each col in tab.columns
if len(col.comment) <>0 then
col.name =col.comment
end if
On Error Resume Next
next
end if
next
end sub
边栏推荐
- 干货!零售业智能化管理会遇到哪些问题?看懂这篇文章就够了
- [kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals
- 教育信息化步入2.0,看看JNPF如何帮助教师减负,提高效率?
- [point cloud processing paper crazy reading cutting-edge version 12] - adaptive graph revolution for point cloud analysis
- 【点云处理之论文狂读前沿版10】—— MVTN: Multi-View Transformation Network for 3D Shape Recognition
- 【点云处理之论文狂读经典版13】—— Adaptive Graph Convolutional Neural Networks
- Save the drama shortage, programmers' favorite high-score American drama TOP10
- Spark 结构化流写入Hudi 实践
- 【Kotlin学习】类、对象和接口——定义类继承结构
- Hudi integrated spark data analysis example (including code flow and test results)
猜你喜欢
【点云处理之论文狂读前沿版12】—— Adaptive Graph Convolution for Point Cloud Analysis
Spark structured stream writing Hudi practice
CSDN markdown editor help document
低代码起势,这款信息管理系统开发神器,你值得拥有!
常见渗透测试靶场
On February 14, 2022, learn the imitation Niuke project - develop the registration function
【点云处理之论文狂读经典版9】—— Pointwise Convolutional Neural Networks
【毕业季|进击的技术er】又到一年毕业季,一毕业就转行,从动物科学到程序员,10年程序员有话说
[point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
【Kotlin学习】高阶函数的控制流——lambda的返回语句和匿名函数
随机推荐
Hudi learning notes (III) analysis of core concepts
The less successful implementation and lessons of RESNET
On a un nom en commun, maître XX.
Internet Protocol learning record
Jenkins learning (I) -- Jenkins installation
AcWing 787. Merge sort (template)
Navicat, MySQL export Er graph, er graph
State compression DP acwing 91 Shortest Hamilton path
精彩回顾|I/O Extended 2022 活动干货分享
Pic16f648a-e/ss PIC16 8-bit microcontroller, 7KB (4kx14)
【Kotlin学习】运算符重载及其他约定——重载算术运算符、比较运算符、集合与区间的约定
Beego learning - Tencent cloud upload pictures
【点云处理之论文狂读前沿版8】—— Pointview-GCN: 3D Shape Classification With Multi-View Point Clouds
[point cloud processing paper crazy reading classic version 14] - dynamic graph CNN for learning on point clouds
Move anaconda, pycharm and jupyter notebook to mobile hard disk
Temper cattle ranking problem
CSDN markdown editor help document
Explanation of the answers to the three questions
[point cloud processing paper crazy reading classic version 11] - mining point cloud local structures by kernel correlation and graph pooling
Vscode编辑器右键没有Open In Default Browser选项