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
    '最后修改时间';

  • 相关阅读:
    Java 标识符
    Java 关键字详解
    Java 语言的主要特性
    redis学习
    垃圾回收
    JVM内存结构
    sql总结(DML)
    sql总结(DDL)
    加密算法
    《数据结构》 定长顺序串常用操作代码集合
  • 原文地址:https://www.cnblogs.com/jsping/p/2776874.html
Copyright © 2011-2022 走看看