View previous topic :: View next topic
|
Author |
Message |
Susanta
Active User
Joined: 17 Nov 2009 Posts: 126 Location: India
|
|
|
|
Is it possible to view DDL staements for already created tables in DB2 Catalog?
Please suggest. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Ofcourse Yes, If you have RC/Query or with other tools also its possible i guess. What tool do you have in your place ?
Sushanth |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
DCLGEN also has the DECLARE TABLE statement which can be considered as DDL. You have to let us know what you are trying to find out from the DDL then we may be able to give better suggestions. |
|
Back to top |
|
|
Susanta
Active User
Joined: 17 Nov 2009 Posts: 126 Location: India
|
|
|
|
I actually want to know the constraints of any table which were mentioned by create or alter DDL statements.
Thanks. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Constraint information can be found out from the catalog tables.
Click Here for more information.
Every site I have worked for had a metadata store/db2 cross reference where I could refer for more information about any existing table. Talk to your peers/seniors in the project, to find out if you have equivalent alternative available at your site. |
|
Back to top |
|
|
|