Reputation: 120
Is it possible to create a event scheduler with declare statement in it?
i have been trying run this query without any success
create event dele on schedule
every 1 day
do
begin
declare c int;
select count(*) into c from purchased;
if(c > 5)
delete from purchased limit 2
end if;
end
Upvotes: 0
Views: 1958