📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

OCT



Returns a string representation of the octal value of N.

Syntax

OCT(<expr>)

Examples

SELECT OCT(12); +---------+ | OCT(12) | +---------+ | 014 | +---------+

Was this page helpful?