Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Alternative zu EntityFunctions.AddSeconds für MySQL

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