zoukankan      html  css  js  c++  java
  • Oracle语句创建表

    create table dept  (
       deptid                 INTEGER                         not null,
       chinaname          VARCHAR2(50),
       simplename         VARCHAR2(50),
       parentid           INTEGER                         not null,
       indexid            INTEGER                        default (0) not null,
       sortcode           VARCHAR2(60),
       delstatus          SMALLINT                       default (0) not null,
       depttype           SMALLINT                       default (0) not null,
       deptroles          VARCHAR2(50),
       permstring         VARCHAR2(3000)                 default ',0,' not null,
       holdleader         INTEGER                        default (0) not null,
       tybmbm             VARCHAR2(255),
       dwbm               VARCHAR2(200),
       systemtype         VARCHAR2(255),
       stattype           VARCHAR2(255),
       jjry               INTEGER                        default (0),
       deptdutytype       SMALLINT                       default (0),
       adder              INTEGER                        default (0) not null,
       addtime            DATE                           default sysdate not null,
       moder              INTEGER                        default (0) not null,
       modtime            DATE                           default sysdate not null,
       constraint PK_DEPT primary key (deptid)
    );

    comment on column dept.deptid is
    '主键';

    comment on column dept.chinaname is
    '部门名称';

    comment on column dept.simplename is
    '简称';

    comment on column dept.parentid is
    '父节点';

    comment on column dept.indexid is
    '排序号';

    comment on column dept.sortcode is
    '排序串';

    comment on column dept.delstatus is
    '删除标识';

    comment on column dept.depttype is
    '单位性质';

    comment on column dept.deptroles is
    '单位职能分工特点';

    comment on column dept.permstring is
    '单位权限位,形如“,2,3,6,4,1,33,”每位标识的意义见categoryvalue表的设定';

    comment on column dept.holdleader is
    '分管领导';

    comment on column dept.tybmbm is
    '统一编码';

    comment on column dept.dwbm is
    '单位编码';

    comment on column dept.systemtype is
    '所处系统分类';

    comment on column dept.stattype is
    '单位统计类别';

    comment on column dept.jjry is
    '纪检人员';

    comment on column dept.deptdutytype is
    '单位职能分类';

    comment on column dept.adder is
    '添加者';

    comment on column dept.addtime is
    '添加时间';

    comment on column dept.moder is
    '最后修改者';

    comment on column dept.modtime is
    '最后修改时间';

  • 相关阅读:
    WebService之Axis2 (3):使用services.xml文件发布WebService
    WebService之Axis2(2):复合类型数据的传递
    WebService之Axis2(1):用POJO实现0配置的WebService
    com.mchange.v2.c3p0.impl.NewPooledConnection@be1839d closed by a client的正确解答
    拿到新服务器时应做的标准测试
    rabbitmq heartbeat missing with heartbeat = N seconds原因总结
    从技术专家到管理者的思路转变(V1)
    netty集成ssl完整参考指南(含完整源码)
    技术晋升的评定与博弈(转)
    Eureka-zookeeper的服务发现替代方案
  • 原文地址:https://www.cnblogs.com/jsping/p/2776874.html
Copyright © 2011-2022 走看看