zoukankan      html  css  js  c++  java
  • PowerDesigner 自动为MySQL的PDM生成Indenty的脚本

    '*****************************************************************************
    dim model 'current model
    set model = ActiveModel
    If (model Is Nothing) Then
    MsgBox "There is no current Model"
    ElseIf Not model.IsKindOf(PdPDM.cls_Model) Then
    MsgBox "The current model is not an Physical Data model."
    Else
    ProcessTables model
    End If
    '*****************************************************************************
    '*****************************************************************************
    sub ProcessTables(folder)
    
    dim table
    for each table in folder.tables
    if not table.IsShortCut then
    ProcessTable table
    end if
    next
    
    dim subFolder
    for each subFolder in folder.Packages
    ProcessTables subFolder
    next
    end sub
    '*****************************************************************************
    '*****************************************************************************
    sub ProcessTable(table)
    dim col
    for each col in table.Columns
    
    if col.Primary and not col.ForeignKey then
    col.Identity = true
    end if
    next
    end sub
    
  • 相关阅读:
    poj 1191(棋盘分割)
    poj 1184(聪明的打字员)
    HDU 3593(The most powerful force)
    poj 2449(Remmarguts' Date)
    poj 1837(blance)
    poj 1742(Coins)
    poj 3280(Cheapest Palindrome)
    poj 1077(八数码)
    数组排序1.和求最大值
    当textindent与float相遇
  • 原文地址:https://www.cnblogs.com/huangjacky/p/2612418.html
Copyright © 2011-2022 走看看