OPTIMIZE TABLE in stored procedure
I wrote such procedure
CREATE PROCEDURE sp_test()
BEGIN
OPTIMIZE TABLE my_table;
END
When you call getting the error "sp_test can't return a result set in the given context"
I understand - OPTIMIZE returns result set with the results of their work. I do not need these results. As much as I suppress them?
Server version: 5.1.45-community
Edited 1 time(s). Last edit at 01/19/2012 04:20AM by Anton Shchirov.
Subject
Views
Written By
Posted
OPTIMIZE TABLE in stored procedure
2591
January 19, 2012 04:12AM
994
January 22, 2012 05:57PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.