Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

MAKETIME

Example

Formulate and return a time value using specified hour, minute, and second components.

SELECT MAKETIME(11354);

Definition and Usage

The MAKETIME() function constructs and returns a time using specified hour, minute, and second values.

Syntax

MAKETIME(hourminutesecond)

Parameter Values

Parameter

Description

hour

Mandatory: The value representing hours

minute

Mandatory: The value representing minutes

second

Mandatory: The value representing seconds

Technical Details

Works in:

 From MySQL version 4.0

More Examples

Example

Generate and provide a time value using specified hour, minute, and second components.

SELECT MAKETIME(1610);

Example

Construct and return a time value using specified hour, minute, and second components.

SELECT MAKETIME(215959);

Example

Formulate and return a time value using specified hour, minute, and second components.

SELECT MAKETIME(8385959);