1. 傻瓜式的安装

          2.在安装的过程中选择地区后才可以点击同意和下一步

          3.安装地址,建议直接把c改为d

          4.其他选项直接下一步

2.使用powerDesigner做流程图

        1.

         大型运输行业实战_day02_1_数据库设计与powerDesigner使用

      2.

       大型运输行业实战_day02_1_数据库设计与powerDesigner使用

      3.

       大型运输行业实战_day02_1_数据库设计与powerDesigner使用

      4.  两个重要快捷键:
          ctrl+home:左右对齐
          ctrl+end:上下对齐

      大型运输行业实战_day02_1_数据库设计与powerDesigner使用

 3.使用powerDesigner创建数据库表

         步骤如下:

         1.

         大型运输行业实战_day02_1_数据库设计与powerDesigner使用

        2.设置数据库类型以及工程名称

         大型运输行业实战_day02_1_数据库设计与powerDesigner使用

       3.创建表

       大型运输行业实战_day02_1_数据库设计与powerDesigner使用

 

        4.定表的名称 与 字段

        大型运输行业实战_day02_1_数据库设计与powerDesigner使用

     5.设置表名

     大型运输行业实战_day02_1_数据库设计与powerDesigner使用

    6.设置字段名称以及字段类型

      大型运输行业实战_day02_1_数据库设计与powerDesigner使用

     7.设置指定字段的名称类型等明细

     大型运输行业实战_day02_1_数据库设计与powerDesigner使用

    8.建表完成

     大型运输行业实战_day02_1_数据库设计与powerDesigner使用

4.导出sql建表文件

        1.

         大型运输行业实战_day02_1_数据库设计与powerDesigner使用

      2.

      大型运输行业实战_day02_1_数据库设计与powerDesigner使用

5.修改powerDesigner的默认存储引擎

       1.

       大型运输行业实战_day02_1_数据库设计与powerDesigner使用

     2. 将原来的  default=MYISAM  改为    default=InnoDB

     大型运输行业实战_day02_1_数据库设计与powerDesigner使用

     3.点击确定修改完成

  6.PowerDesigner为表字段添加Comment注释,让name等于Comment   

  1.准备执行脚本 nameToCommont.vbs

'******************************************************************************
'* File:     name2comment.vbs
'* Title:    Name to Comment Conversion
'* Model:    Physical Data Model
'* Objects: Table, Column, View
'* Author:   steveguoshao
'* Created: 2013-11-29
'* Mod By:
'* Modified:
'* Version: 1.0
'* Memo:     Modify from name2code.vbs
'******************************************************************************

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
View Code

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2022-02-07
  • 2022-01-06
  • 2021-05-23
  • 2022-02-07
  • 2021-04-18
  • 2021-10-03
猜你喜欢
  • 2022-01-04
  • 2021-08-31
  • 2021-10-18
  • 2022-02-01
  • 2021-08-01
相关资源
相似解决方案