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, 1954🔥, 0💬
Popular Posts:
Where to find reference information and tutorials on MySQL database functions? I want to know how to...
Where to find tutorials to answer some frequently asked questions on Microsoft SQL Server Transact-S...
What Is Transport Network Substrate (TNS) in Oracle? TNS, Transport Network Substrate, is a foundati...
How To Concatenate Two Character Strings Together in SQL Server Transact-SQL? Concatenating two char...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...