- 浏览: 381352 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (215)
- ubuntu (27)
- 虚拟机 (13)
- 数据库 (29)
- JAVA (40)
- 搜索 (23)
- 开发工具 (2)
- 产品 (2)
- 工具 (1)
- 应用服务器 (5)
- linux (17)
- log (1)
- 多线程 (3)
- 异常 (1)
- shell (6)
- 12306 ;互联网 (1)
- 持续集成&Hudson (4)
- js (1)
- JAVA OR-Map (1)
- 漏洞 (1)
- svn (1)
- MAVEN (3)
- 架构 (1)
- windows (1)
- json (1)
- web (3)
- jenkins (2)
- iptables (2)
- JAVA ssh (0)
- 项目管理 (1)
- tomcat (1)
- 安全 (1)
- 数据库 mysql (1)
- 性能 (1)
最新评论
-
sbwfgihc:
怎么用的啊,
<转>mysql 树查询语句 -
panghaoyu:
实现一个智能提示功能需要ajax、数据库、jsp/php、算法 ...
<转>Solr Suggest实现搜索智能提示 -
songsove:
请问您qq多少
solr 对拼音搜索和拼音首字母搜索的支持 -
panghaoyu:
实现一个智能提示功能需要ajax、数据库、jsp/php、算法 ...
<转>Solr Suggest实现搜索智能提示 -
norain1988:
这样就可以实现相关搜索了吗
solr 百度相关搜索类似功能的实现
在使用PowerDesigner对数据库进行概念模型和物理模型设计时,一般在NAME或Comment中写中文,在Code中写英文。Name用来显 示,Code在代码中使用,但Comment中的文字会保存到数据库Table或Column的Comment中,当Name已经存在的时候,再写一次 Comment很麻烦,可以使用以下代码来解决这个问题:
· 代码一:将Name中的字符COPY至Comment中
· '******************************************************************************
'* File: name2comment.vbs
'* Purpose: Database generation cannot use object names anymore
' in version 7 and above.
' It always uses the object codes.
'
' In case the object codes are not aligned with your
' object names in your model, this script will copy
' the object Name onto the object Comment for
' the Tables and Columns.
'
'* Title:
'* Version: 1.0
'* Company: Sybase Inc.
'******************************************************************************
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 comment 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
tab.comment = tab.name
Dim col ' running column
for each col in tab.columns
col.comment= col.name
next
end if
next
Dim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.comment = view.name
end if
next
' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub
--------------------------------------------
另外在使用REVERSE ENGINEER从数据库反向生成PDM的时候,PDM中的表的NAME和CODE事实上都是CODE,为了把NAME替换为数据库中Table或Column的中文Comment,可以使用以下脚本:
· 代码二:将Comment中的字符COPY至Name中
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
Private sub ProcessFolder(folder)
On Error Resume Next
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
tab.name = tab.comment
Dim col ' running column
for each col in tab.columns
if col.comment="" then
else
col.name= col.comment
end if
next
end if
next
Dim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.name = view.comment
end if
next
' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub
-----------------------------------------------------------------------
以上两段代码都是VB脚本,在PowerDesigner中使用方法为:
PowerDesigner->Tools->Execute Commands->Edit/Run Scripts
将代码Copy进去执行就可以了,是对整个CDM或PDM进行操作
· 代码一:将Name中的字符COPY至Comment中
· '******************************************************************************
'* File: name2comment.vbs
'* Purpose: Database generation cannot use object names anymore
' in version 7 and above.
' It always uses the object codes.
'
' In case the object codes are not aligned with your
' object names in your model, this script will copy
' the object Name onto the object Comment for
' the Tables and Columns.
'
'* Title:
'* Version: 1.0
'* Company: Sybase Inc.
'******************************************************************************
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 comment 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
tab.comment = tab.name
Dim col ' running column
for each col in tab.columns
col.comment= col.name
next
end if
next
Dim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.comment = view.name
end if
next
' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub
--------------------------------------------
另外在使用REVERSE ENGINEER从数据库反向生成PDM的时候,PDM中的表的NAME和CODE事实上都是CODE,为了把NAME替换为数据库中Table或Column的中文Comment,可以使用以下脚本:
· 代码二:将Comment中的字符COPY至Name中
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
Private sub ProcessFolder(folder)
On Error Resume Next
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
tab.name = tab.comment
Dim col ' running column
for each col in tab.columns
if col.comment="" then
else
col.name= col.comment
end if
next
end if
next
Dim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.name = view.comment
end if
next
' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub
-----------------------------------------------------------------------
以上两段代码都是VB脚本,在PowerDesigner中使用方法为:
PowerDesigner->Tools->Execute Commands->Edit/Run Scripts
将代码Copy进去执行就可以了,是对整个CDM或PDM进行操作
发表评论
-
MYSQL--表分区、查看分区(转)
2014-12-15 21:50 700原文地址:http://blog.csdn ... -
<转>Mysql 慢查询和慢查询日志分析
2014-08-30 15:09 1183原链接:http://www.cnblogs.com/wrmf ... -
<转>MySQL锁定状态查看命令
2014-08-30 14:45 749原链接:http://blog.csdn.net/dc_726 ... -
<转>MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
2014-08-30 14:39 973原链接:http://my.oschina.net/jiaoy ... -
mysql函数
2014-05-27 11:20 531select curdate(); ... -
<转>从mysql到内存数据库的一些碎碎念
2014-04-24 15:30 1096原链接:http://blog.csdn.net/ty1921 ... -
修改mysql自增主键的初始值
2014-04-15 17:45 1034默认情况下ID是从1开始递增,如果要修改递增初始值,可在Mys ... -
<转> MySQL的经典用法----临时表与内存表
2014-04-09 15:47 818原链接:http://blog.csdn.net/feihon ... -
<转>Oracle中的软解析和硬解析
2014-04-02 14:10 915原链接:http://soft.chinabyte.com/d ... -
<转>mybatis防止sql注入
2014-03-28 10:19 855原链接:http://cs-css.iteye.com/blo ... -
mysql变相实现split
2014-03-10 18:01 797--按split取第2个字符分 ... -
mysql按拼音排序
2013-11-08 14:59 746select * from ac_operator order ... -
<转>深入mysql慢查询设置的详解
2013-10-12 10:22 622原链接:http://www.jb51.net/article ... -
<转>mysql对于大表(千万级),要怎么优化呢?
2013-10-11 18:01 706原链接:http://www.zhihu.com/questi ... -
<转>三个方法优化MySQL数据库查询
2013-10-11 17:18 541原链接:http://www.bitscn.com/pdb/m ... -
<转>详解MySQL中EXPLAIN解释命令
2013-10-11 16:56 723原链接:http://database.51c ... -
<转>mysql导入导出包括函数或者存储过程
2013-09-23 14:33 932mysql导入导出包括函数或者存储过程 1.mysql导出 ... -
mybatis技巧
2013-09-11 17:12 1242集合和in的表示 <delete id="d ... -
<转>MySQL中进行树状所有子节点的查询(写函数)
2013-09-11 09:38 864原链接:http://blog.csdn.net/acmain ... -
<转>mysql 树查询语句
2013-09-10 15:38 6512原链接:http://skudy.iteye.com/blog ...
相关推荐
powerDesigner 把name项添加到comment 使用方法使用方法 PowerDesigner->Tools->Execute Commands->Edit/Run Scripts 可以保存该脚本为:name2comment.vbs
在使用PowerDesigner对数据库进行概念模型和物理模型设计时,一般在NAME或Comment中写中文,在Code中写英文。Name用来显 示,Code在代码中使用,但Comment中的文字会保存到数据库Table或Column的Comment中,当Name...
pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd教程pd...
name2comment 解决PD 生成sql语句时候,不附带注解的问题
PD 启动器PD Runner PD Runner 是适用于 Parallels Desktop 17 的一款无限试用启动器。支持 Intel/ARM M1 使用,也支持 MacOS 12,USB、网络一切都是正常的。此工具是免费的,感谢开发者 Lihaoyun6 的付出。 下载...
使用simulink/simscape搭建二连杆模型,进行PD独立控制和PD+重力补偿控制。 使用simulink/simscape搭建二连杆模型,进行PD独立控制和PD+重力补偿控制。 使用simulink/simscape搭建二连杆模型,进行PD独立控制和PD+...
在这封信中,我们介绍了使用EURICAγ谱仪研究的有关$ ^ {125} $ Pd $ _ {79} $和$ ^ {127} $ Pd $ _ {81} $的激发态的第一光谱信息 ,随后在RIBF设施中通过空中裂变生产高强度$ ^ {238} $ U光束。 在$ ^ {125} $ Pd...
有少量pd协议的代码 需搭配我另一个代码使用 仅供参考
在检测与估计中 仿真给出检查概率与虚警概率的关系 Pfa=1-Q(z),Pd=1-Q(z-d),画不同d情况下Pfa与Pd的关系图
夏普 Sharp vl-pd3s、vl-pd3h、vl-pd3e摄像机维修服务说明书原理图PCB图
USB_PD-master_PD_pd源码_pd协议_dawnd82_USBPD_源码.rar
通过PD检测后,从而来实现雷达测速的功能
基于关联规则的Apriori算法的可视化实现方法.pd.pdf
USB_PD-master_PD_pd源码_pd协议_dawnd82_USBPD_源码.zip
包含 typec接口定义使用方法,usb pd2.0 pd3.0协议详细规范,以及PPS详细协议说明。
TYPEC CC脚功能和PD协议简介
主要给大家介绍了关于python中时间转换datetime和pd.to_datetime的相关资料,文中通过示例代码介绍的非常详细,对大家学习或者使用python具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
USB_PD_R3_0 V1.1 20170112
针对PD协议移动电源进行开发的51单片机控制程序
在Matlab实现了对PD雷达算法的仿真,最后达到测速测距效果