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, 1212🔥, 0💬
Popular Posts:
How to download Microsoft SQL Server 2005 Express Edition in SQL Server? Microsoft SQL Server 2005 E...
How to put statements into a statement block in SQL Server Transact-SQL? You can put statements into...
What are single-byte character string data types supported in SQL Server Transact-SQL? Single-byte c...
Can Date and Time Values Be Converted into Integers in SQL Server Transact-SQL? Can date and time va...
How to download and install Microsoft SQL Server Management Studio Express in SQL Server? Microsoft ...