问答详情
源自:2-2 [Oracle] 带参数的存储过程

emp 表创建语句 包含哪些字段?

视频中提出的emp表 中有哪些字段? 有没有创建表时的sql 语句?

提问者:qq_云端_8 2019-05-29 10:59

个回答

  • 慕少852478
    2019-07-10 10:06:46

    解锁scott用户后自带表。

      CREATE TABLE "SCOTT"."EMP" 

       ( "EMPNO" NUMBER(4,0), 

    "ENAME" VARCHAR2(10 BYTE), 

    "JOB" VARCHAR2(9 BYTE), 

    "MGR" NUMBER(4,0), 

    "HIREDATE" DATE, 

    "SAL" NUMBER(7,2), 

    "COMM" NUMBER(7,2), 

    "DEPTNO" NUMBER(2,0), 

    CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")

      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 

      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645

      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)

      TABLESPACE "USERS"  ENABLE, 

    CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")

      REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE

       ) SEGMENT CREATION IMMEDIATE 

      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING

      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645

      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)

      TABLESPACE "USERS" ;


  • 如果成功会怎样
    2019-06-05 02:24:34

    scott 用户下自带表