Home » MySQL Math GREATEST() Function

MySQL Math GREATEST() Function

by Online Tutorials Library

MySQL GREATEST() Function

The greatest() is a Math function of MySQL. This function is used to get the largest number from the list.

Syntax

Prameter:

Exp1, exp2, exp3…. expn : expressions for getting largest number.

Returns

This function returns the largest number from the list.

Example 1

Output:

MySQL Math GREATEST() Function

Example 2

Output:

MySQL Math GREATEST() Function

Example 3

Output:

MySQL Math GREATEST() Function

Next TopicMySQL Math

You may also like