MySQL Date/Time second() Function

The second() is a MySQL date/time function. It is used to get the second portion from the given date/datetime.

Syntax

Parameter:

date_value : date/datetime value for getting second.

Returns:

This function returns the second portion of a date value.

Example 1

Output:


MySQL Datetime second() Function

Example 2

Output:


MySQL Datetime second() Function
Next TopicMySQL datetime




Latest Courses