zoukankan      html  css  js  c++  java
  • PowerDesigner

    1.

    PowerDesigner 批量添加字段

    tools->execute commands-> edit/run script

    Option Explicit
    
    Dim mdl ' the current model
    Set mdl = ActiveModel
    Dim Tab 'running table
    Dim col_1
    Dim col_2
    Dim col_3
    Dim col_4
    
    ' 定义属性变量
    for each Tab in ActiveModel.Tables
    
    Set col_1 = Tab.Columns.CreateNew
    Set col_2 = Tab.Columns.CreateNew
    Set col_3 = Tab.Columns.CreateNew
    Set col_4 = Tab.Columns.CreateNew
    
    '添加公共字段 by Sinu
    
    col_1.name = "创建人"
    col_1.code = "created_user"
    col_1.DataType = "varchar(50)"
    col_1.comment= "创建人"
    
    col_2.name = "创建时间"
    col_2.code = "created_date"
    col_2.DataType = "datetime"
    col_2.comment= "创建时间"
    
    col_3.name = "修改人"
    col_3.code = "modified_user"
    col_3.DataType = "varchar(50)"
    col_3.comment= "修改人"
    
    col_4.name = "修改时间"
    col_4.code = "modified_date"
    col_4.DataType = "datetime"
    col_4.comment= "修改时间"
    
    next
    MsgBox "success"
  • 相关阅读:
    animation
    0201 ---背景 tableview
    0129 ---稳定定的 plist介绍
    0127 userdefault
    0127 数据库 我的专家
    0122 ---清理缓存
    0122 清楚缓存
    0122---screach
    0121 --view 可以当作线
    0119吧 iPhone 屏幕尺寸
  • 原文地址:https://www.cnblogs.com/kplsm123/p/12441441.html
Copyright © 2011-2022 走看看