---
title: "如何在原有系统中加入功能(一数据库)"
author: "抛出异常的爱"
date: "2016-04-24T11:06:20Z"
tags: []
categories: ["企业架构"]
slug: "untitled"
draft: false
lastmod: "2016-04-24T11:06:20Z"
id: 2293395
url: "https://loveexception.iteye.com/blog/2293395"
---

第一步想办法把建表语句导入一powerdesginer

![](http://dl2.iteye.com/upload/attachment/0116/9381/b03594e6-e199-3d55-9a82-7222fead92cc.jpg)

![](http://dl2.iteye.com/upload/attachment/0116/9383/7fc68f0a-72b5-35e9-93aa-d75fefaafcae.jpg)

![](http://dl2.iteye.com/upload/attachment/0116/9391/66a31088-eada-346d-89ea-3a8c049042e7.jpg)


第二步排序上色
![](http://dl2.iteye.com/upload/attachment/0116/9379/94e69719-b54e-33fc-a40a-836b99ec92b7.jpg)

第三步 表名同步 如果你有二个显示器可以开二个显示器
一个看表名
![](http://dl2.iteye.com/upload/attachment/0116/9393/c427f346-b685-358f-abee-13c37a880bb6.jpg)
把没名的表名补全
![](http://dl2.iteye.com/upload/attachment/0116/9397/8525a261-883f-3207-a75b-f231635fd76f.jpg)



另一个看数据(全靠猜)
![](http://dl2.iteye.com/upload/attachment/0116/9395/1f49bb73-b078-39bd-b12c-9c1ed6e28f99.jpg)
有时还需要看看代码 PHP html 

![](http://dl2.iteye.com/upload/attachment/0116/9399/d1ebc246-a15b-3656-90de-7c3c266dd097.jpg)


ps:comment 变name 

```java

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 


```

第四步列名同步(同上) 
 
技巧1:
![](http://dl2.iteye.com/upload/attachment/0116/9401/d015f1c9-66ab-3440-9bbd-0bc627c2777e.jpg)
导出csv看的清楚一些可以多作几个字段

基本上完成数据结构了解
打印A3一张挂在你身后的墙上(或者 多 张 A4 )