MySQL OCT Function

MySQL OCT is one of the String functions which converts the given value to an Octal number. The OCT function returns the string representation of that Octal number. The basic syntax of the MySQL OCT Function is as shown below:


MySQL Octal Function Example

This method query converts the user-specified number to Octal Number. Next, it returns the Output in String format. The following String method query shows multiple ways to use this OCT function.



SELECT OCT(33456);
MySQL OCT Function Example

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.