Converts a decimal number to its octal string representation. Shorthand for CONV(num, 10, 8).
VARCHARDiperbarui: 13 Jun 2026OCT(num)The decimal number to convert
1 SELECT OCT(8) AS octal_str;
Decimal 8 equals octal 10.
1 SELECT OCT(511) AS permission;
Decimal 511 equals octal 777 (rwxrwxrwx).
1 SELECT value, OCT(value) AS octal_val 2 FROM permissions;
Display values in octal.
Sudah paham OCT? Latih langsung di browser
Latihan interaktif, langsung di browser.