bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL SECOND() Function

Example

SELECT SECOND("2017-06-20 09:34:00.000023");

Definition and Usage

The SECOND() function returns the seconds part of a time/datetime (from 0 to 59).

Syntax

SECOND(
datetime
)

Parameter Values

ParameterDescription
datetimeRequired. The time or datetime to extract the second from

Technical Details

Works in:From MySQL 4.0

Previous

MySQL QUARTER() Function

Next

MySQL SEC_TO_TIME() Function