没有合适的资源?快使用搜索试试~ 我知道了~
powerdesiger的生成表的时候包含字段注释
需积分: 9 11 下载量 40 浏览量
2016-09-15
21:34:05
上传
评论
收藏 2KB TXT 举报
温馨提示
试读
3页
有好多小伙伴们在通过powerdesiger生成表的SQL语句的时候,只有创建表的SQL语句,字段的注释并没有随着表一起创建,很头疼,今天教大家一个办法。文档里面写得很清楚,觉得有用的小伙伴们,可以看看,不用感谢我,嘻嘻!
资源推荐
资源详情
资源评论
1、为sql生成注释,操作如下
在其中选择Tools----》Excute commands-----》Edit/Run Script打开的窗口中添加以下信息
添加以下文本后,运行保存名为:name2comment.vbs 文件即可
2、将表生成SQL PREVIEWS的时候就可以看到注释了,搞定!!!
'******************************************************************************
'* 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
在其中选择Tools----》Excute commands-----》Edit/Run Script打开的窗口中添加以下信息
添加以下文本后,运行保存名为:name2comment.vbs 文件即可
2、将表生成SQL PREVIEWS的时候就可以看到注释了,搞定!!!
'******************************************************************************
'* 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
资源评论
samphin
- 粉丝: 6
- 资源: 37
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功