CLOB,LONG,NCLOB在SQL*PLUS的显示长度
SQL> SELECT DBMS_METADATA.GET_DDL('TABLE','BLANK') FROM DUAL;
DBMS_METADATA.GET_DDL('TABLE','BLANK')
--------------------------------------------------------------------------------
  CREATE TABLE "TEST"."BLANK"
   (    "A" VARCHAR2(100)
   ) PCTFREE 10 PCTUSED 4
SQL> SET LONG 2000
SQL> SELECT DBMS_METADATA.GET_DDL('TABLE','BLANK') FROM DUAL;
DBMS_METADATA.GET_DDL('TABLE','BLANK')
--------------------------------------------------------------------------------
  CREATE TABLE "TEST"."BLANK"
   (    "A" VARCHAR2(100)
   ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRAN
S 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEX
TENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS
1 BUFFER_POOL DEFAULT)
  TABLESPACE "USERS"
DBMS_METADATA.GET_DDL('TABLE','BLANK')
--------------------------------------------------------------------------------
SQL>
No comments:
Post a Comment