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

Stats collection inside SP's - response (3) by KS42982

$
0
0

Here is one simple example -
REPLACE PROCEDURE DBNAME.PROCNAME()
BEGIN
COLLECT STATISTICS TBNAME COLUMN COL1;
END;
 
CALL DBNAME.PROCNAME();
What kind of error do you get when you try that ? I use it in one of my SPs and it worked fine. At lease when I call it, I don't get error.
And sorry, I really don't understand what does it mean by BEGIN and END period type.


Viewing all articles
Browse latest Browse all 27759

Trending Articles