Collections:
OCT() - Calculate Octal representation
How to calculate the octal representation of a given integer using the OCT() function?
✍: FYIcenter.com
OCT(in) is a MySQL built-in function that
calculates the octal representation of a given integer.
For example:
SELECT OCT('255'), OCT(255);
-- +------------+----------+
-- | OCT('255') | OCT(255) |
-- +------------+----------+
-- | 377 | 377 |
-- +------------+----------+
Reference information of the OCT() function:
OCT(in): oct Returns a string representation of the octal value of N, where N is a longlong (BIGINT) number. This is equivalent to CONV(N,10,8). Returns NULL if N is NULL. Arguments, return value and availability: in: Required. The input integer. oct: Return value. The octal string representation of the input. Available since MySQL 5.7.
Related MySQL functions:
⇒ OCTET_LENGTH() - Synonym for LENGTH()
⇐ MID() - Synonym for SUBSTRING()
2023-11-18, 1642🔥, 0💬
Popular Posts:
Where to find MySQL database server tutorials? Here is a collection of tutorials, tips and FAQs for ...
How To Connect ASP Pages to Oracle Servers in Oracle? If you are running Windows IIS Web server and ...
How To List All Login Names on the Server in SQL Server? If you want to see a list of all login name...
How To Revise and Re-Run the Last SQL Command in Oracle? If executed a long SQL statement, found a m...
How to download and install the scaled-down database AdventureWorksLT in SQL Server? If you want to ...