24 May,2014 by Tom Collins
Question: Given a view name , how can you get the definition of a View in DB2?
Answer: Query the SYSCAT.VIEWS and return the TEXT column. An alternative is to use the db2look utility
Syntax using SYSCAT.VIEWS
SELECT TEXT FROM SYSCAT.VIEWS WHERE VIEWNAME = 'myview' and viewschema = 'myschema'
Method 2 using db2look
Db2look –d mydatabase -t myView
Create a DDL on an existing DB2 table
Deciding to reorg DB2 tables with overflow value
Commands to check for read only Linux file system
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |