Syntax
Parameters
p: optional, the specified precision, that is, the number of digits to retain after seconds. It must be an INT value within the range of [1,6]. select current_timestamp(0) is equivalent to select current_timestamp().
Return value
- If
pis not specified, this function returns a DATETIME value accurate to the second. - If
pis specified, this function returns a date and time value of the specified precision.
Examples
Example 1: Return the current time.Text