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.
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.