SQL SQUARE Function

The SQUARE function returns the square of the specified number.

The specified number is multiplied by itself.

Example

#

The example returns the squared value of 4.

SELECT SQUARE(4) AS '4 Squared'
Result:  1 record
4 Squared
16

Syntax

Syntax of the SQUARE function.

SQUARE(value)

value -- a number or column name.


You may also like



Guides


vsn 3.1