DB2: To generate DDL at command line

 $ db2look -d wcstg1 -e -a -t wcs.staglog -o staglog.ddl

-- Generate statistics for all creators

-- The db2look utility will consider only the specified tables

-- Creating DDL for table(s)

-- Output is sent to file: staglog.ddl

-- Binding package automatically ...

-- Bind is successful

[stg1ins1@db2stg601 stg1ins1 C0000001]

$ view staglog.ddl

[stg1ins1@db2stg601 stg1ins1 C0000001]


Comments

Popular posts from this blog

Oracle: To clean up WRI$_ADV_OBJECTS