zoukankan      html  css  js  c++  java
  • PowerDesigner一些常用功能介绍

    主键、自增长等等

    修改之前:

    drop table if exists sys_user;
    
    /*==============================================================*/
    /* Table: sys_area                                              */
    /*==============================================================*/
    create table sys_area
    (
       uuid                 int not null auto_increment,
       areaid               varchar(6) not null,
       cityid               varchar(6),
       provid               varchar(6),
       areaname             varchar(50),
       cityname             varchar(50),
       provname             varchar(50),
       lvl                  varchar(1) not null,
       lng                  varchar(50),
       lat                  varchar(50),
       fullName             varchar(200)
    );
    alter table sys_area comment '【系统资源】-行政区划表';
    //添加主键信息
    alter table sys_area add primary key (uuid);

    修改之后:

    drop table if exists sys_user;
    
    /*==============================================================*/
    /* Table: sys_user                                              */
    /*==============================================================*/
    create table sys_user
    (
       uuid                 int not null auto_increment,
       juid                 varchar(64),
       loginId              varchar(50) not null,
       loginName            varchar(128),
       submitPassword       varchar(128) not null,
       loginPassword        varchar(128) not null,
       salt                 varchar(128) not null,
       mobile               varchar(20),
       telePhone            varchar(20),
       email                varchar(50),
       userType             varchar(1),
       type                 int comment '账户类型:研究院,研究所',
       roleId               int,
       status               varchar(1) comment '用户状态:1.启用,2.禁用',
       researchJuid         varchar(64),
       departmentId         int,
       leaderId             int,
       intime               timestamp not null,
       uptime               timestamp not null,
       opUserJuid           varchar(64) not null,
       primary key (uuid)
    );
    alter table sys_user comment '【系统资源】-统一用户信息表(sys_user)';

    PowerDesigner中设置主键显示:

    如何批量导出表结构信息,包括索引等信息

    操作步骤见图示:

    (1)

    (2)

    (3)

    (4)

  • 相关阅读:
    Java中关系操作符==的学习以及与equals的对比
    关于alibaba.fastjson的使用
    给有C或C++基础的Python入门 :Python Crash Course 1
    快速幂基本模板
    断言封装及应用(有难度)
    断言封装之key检查及kv实战示例
    正则取值及断言实战示例
    关联实现下-jsonpath取值(有难度!!耗时长)
    关联实现上-jsonpath取值
    requests顺序执行实现
  • 原文地址:https://www.cnblogs.com/lojun/p/8718477.html
Copyright © 2011-2022 走看看