The MySQL SYSDATE()
function returns the current date and time. The value is returned in ‘YYYY-MM-DD HH:MM:SS’ or YYYYMMDDHHMMSS format, depending on whether the function is used in a string or numeric context.
This function is similar to NOW()
but with a subtle difference. SYSDATE()
returns the time at which it executes. NOW()
returns the time at which the statement started executing.
Continue reading