Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Save output of mutlitple SHOW STATISTICS - forum topic by henry24

$
0
0

In TD14 there is a SHOW STATISTICS statement where it outputs the definition statement statistics of a table. I am trying to create a refresh statistics script and I intend to use this feature so as to make fewer steps. Only problem is how can I save the output of the SHOW stats so I can run it again inside the same script.

SHOW STATISTICS ON customer;

*** Text of DDL statement returned.

*** Total elapsed time was 1 second.

--------------------------------------------------------------------

COLLECT STATISTICS

COLUMN ( CUST_ID ) ,

COLUMN ( ORG_UNIT_ID ) ,

COLUMN ( CORP_CUST_NBR ) ,

COLUMN ( SERV_PLN_EFF_DT ) ,

COLUMN ( CTRY_CD ) ,

COLUMN ( CORP_CUST_NBR ,CTRY_CD )

ON PROD_TBLS_KDW.customer;

 

Thanks for the help.

Forums: 

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>