Mysql OCT
From w3cyberlearnings
Contents |
MySQL OCT Function
This function returns a octal representation value.
Syntax OCT
X is a number.
OCT(X);
Example 1
mysql> SELECT OCT(10); +---------+ | OCT(10) | +---------+ | 12 | +---------+ 1 row in set (0.00 sec)
Example 2
mysql> SELECT OCT(30); +---------+ | OCT(30) | +---------+ | 36 | +---------+ 1 row in set (0.00 sec)