Oracle Tutorial

What is Oracle
SQL Keywords

Oracle Wildcards

Oracle Wildcards

Oracle Aliases

Oracle Aliases

MySQL Tutorial

MySQL Tutorial

PL/SQL Tutorial

PL/SQL Tutorial

Oracle Interview Questions

Oracle Interview Questions and Answers


Oracle Conversion Functions

Oracle functions are built into Oracle and are available for use in various appropriate Oracle statements. You can also create your own function using PL/SQL.

Function Description
BIN_TO_NUMConverts a bit vector to a number.
CASTConverts one datatype to another.
CHARTOROWIDConverts a char, varchar2, nchar, or nvarchar2 to a rowid.
FROM_TZConverts a TIMESTAMP value to a TIMESTAMP WITH TIME ZONE value.
HEXTORAWConverts a hexadecimal value into a raw value.
NUMTODSINTERVALConverts a number to an INTERVAL DAY TO SECOND literal.
NUMTOYMINTERVALConverts a number to an INTERVAL YEAR TO MONTH literal.
RAWTOHEXConverts a raw value into a hexadecimal value.
TO_CHARConverts a number or date to a string.
TO_CLOBConverts a LOB value from the national character set to the database character set.
TO_DATEConverts a string to a date.
TO_DSINTERVALConverts a string to an INTERVAL DAY TO SECOND type.
TO_LOBConverts LONG or LONG RAW values to LOB values.
TO_MULTI_BYTEReturns a character value with all of the single-byte characters converted to multibyte characters.
TO_NCLOBConverts a LOB value to a
TO_NUMBERConverts a string to a number.
TO_SINGLE_BYTEReturns a character value with all of the multibyte characters converted to single-byte characters.
TO_TIMESTAMPConverts a string to a timestamp.
TO_TIMESTAMP_TZConverts a string to a timestamp with time zone.
TO_YMINTERVALConverts a string to an INTERVAL YEAR TO MONTH type.