Re: MySQL Stored Procedures
First of all, the procedure should be:
create procedure proc()
begin
declare count int;
select max(num) into count from table1;
delete from table1 where num <= count-5;
end
This works for me. The error you're getting suggest that you might be using an older version of 5.0.
pem, Senior Software Dev., MySQL AB
Subject
Written By
Posted
February 16, 2005 12:28AM
February 16, 2005 12:48PM
February 16, 2005 10:53PM
February 16, 2005 09:58PM
Re: MySQL Stored Procedures
February 17, 2005 10:42AM
February 17, 2005 10:49PM
February 18, 2005 03:34AM
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.