![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 05 Sep 2002 @ 13:50:55 GMT
You could use the SHOW command to get all the database objects (with their definition) affecting your sql query. For example we know that dbc.dbcinfo is a view built on the dbc table dbc.dbcinfotbl. So now if i need to know the database objects(with their definition) associated with the following query : select * from dbc.dbcinfo; i just need prefix the above with 'SHOW' keyword as follows : SHOW
BTEQ -- Enter your DBC/SQL request or BTEQ command:
show sel * from dbc.dbcinfo;
show sel * from dbc.dbcinfo;
*** Text of DDL statement returned.
*** Total elapsed time was 1 second.
------------------------------------------------------------------------
CREATE SET TABLE DBC.DBCInfoTbl ,FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER JOURNAL
(
InfoKey VARCHAR(30) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL,
InfoData VARCHAR(16384) CHARACTER SET LATIN NOT CASESPECIFIC)
UNIQUE PRIMARY INDEX ( InfoKey );
*** Text of DDL statement returned.
------------------------------------------------------------------------
REPLACE VIEW DBC.DBCInfo AS
SELECT
InfoKey,
InfoData
FROM DBC.DBCInfoTbl WITH CHECK OPTION;
- Narayan Murthy K S
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||