View previous topic :: View next topic |
Author |
Message |
jimmy_augustine Beginner
Joined: 23 Jun 2004 Posts: 32 Topics: 13
|
Posted: Mon Feb 06, 2006 6:17 am Post subject: Is there any way to compare db2 structures |
|
|
Hi,
Is there any way to compare a set of table structures against another set of table structures?
For example, we are in a process of synchronizing production database to the test database. Therefore, we need to know if the test tables are declared exactly same as the production tables including indexes...
Thanks
My lady |
|
Back to top |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Mon Feb 06, 2006 6:31 am Post subject: |
|
|
Run the following query against each of your tables, and compare the output.
Code: | SELECT NAME, COLTYPE, LENGTH, SCALE
FROM "SYSIBM".SYSCOLUMNS
WHERE TBCREATOR = 'creator' AND TBNAME = 'table' ; |
O.
________
buy easy vape |
|
Back to top |
|
|
|
|