OCT()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns the octal value of a numerical argument.
USAGE
OCT(number)
Argument Name | Description |
---|---|
| The number to transform |
DETAILS
OCT()
is a string function that returns a string representation for the octal value of a numeric argument.
A NULL
is returned if the argument is NULL
.
EXAMPLES
SELECT OCT(10);
+---------+
| OCT(10) |
+---------+
| 12 |
+---------+
SELECT OCT(NULL);
+-----------+
| OCT(NULL) |
+-----------+
| NULL |
+-----------+