![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 20 Jun 2012 @ 14:29:37 GMT
Q) We know in TD 12 and below versions there is no option to collect stats on Volatile table. But I heard we can collect stats on VT in TD 13 and above. A) Sugesh: Syntaxes can be checked with below once you are on Database:
help 'sql collect statistics';
And currently there is no option directly provided on VT as I see on 13.10.
help 'sql collect statistics';
*** Query completed. 93 rows found. One column returned.
*** Total elapsed time was 1 second.
On-Line Help
---------------------------------------------------------------------------
/* OPTIMIZER FORM */
{ COLLECT STATISTICS }
{ COLLECT STATS } [ USING SAMPLE ] [ ON ]
{ COLLECT STAT }
{ [ TEMPORARY ] [ database_name. ] table_name }
{ [ database_name. ] join_index_name }
{ [ database_name. ] hash_index_name }
[ COLUMN { column_name } ]
{ PARTITION }
[ COLUMN ({ column_name } [ ,PARTITION ] [ ..64,column_name ] ) ];
({ PARTITION } [ ..64,column_name ] )
[ INDEX ( column_name [..64,column_name ] ) ]
[ INDEX index_name ]
[ FROM [TEMPORARY] tablename ]
[{ index_description[ ...,index_description ] }
{ column_description[ ...,column_description ] }];
OR
/* QCD FORM */
{COLLECT STATISTICS}
{COLLECT STATS } { FOR SAMPLE
Thanks Asif - TD
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||