DELIMITER $$
drop function IF EXISTS AddSeconds$$
create function AddSeconds(theDate datetime, seconds int)
RETURNS datetime
DETERMINISTIC
begin
return DATE_ADD(theDate, INTERVAL seconds SECOND);
end$$
DELIMITER $$
drop function IF EXISTS AddSeconds$$
create function AddSeconds(theDate datetime, seconds int)
RETURNS datetime
DETERMINISTIC
begin
return DATE_ADD(theDate, INTERVAL seconds SECOND);
end$$