CodesJava

Easy learning with example program codes

OCT() FUNCTION in MySQL

OCT() FUNCTION
The MySQL OCT function is used to get the octal value of the specified number.

Syntax:

OCT (number);

Parameters:
number: It is used to specify the number to evaluate.

Example:

mysql> SELECT OCT (12);
</strong>
 
<em><strong>Output: </strong></em>
<pre lang="java">
14

Explanation:
The result is the octal value of 12.

Please follow and like us:
error









Copyright © 2019 CodesJava DMCA.com Protection Status