how to apped when get ddl [message #518883] |
Mon, 08 August 2011 04:29 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
Dear all
Have got ddl of index,but it is not append ';' end of each index,how to append ';' by auto.
Select
Dbms_Metadata.Get_Dependent_Ddl(Object_Type => 'INDEX',
Base_Object_Name => 'TB_HXL_USER')
From Dual
result:
CREATE INDEX "HXL"."IDX_TB_HXL_USER_N1" ON "HXL"."TB_HXL_USER" ("USERNUMBER")
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" -- there is not ';'
CREATE UNIQUE INDEX "HXL"."IDX_TB_HXL_USER_U1" ON "HXL"."TB_HXL_USER" ("STATEDATE", "PROVCODE", "USERNUMBER")
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" -- there is not ';'
|
|
|
|
|