Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
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);