CONVERSION FUNCTIONS

CONVERSION FUNCTIONS
Bin_to_num Chartorowid Rowidtochar To_number
To_char To_date

 

BIN_TO_NUM

This will convert the binary value to its numerical equivalent

Syntax bin_to_num( binary_bits)
EX SQL> select bin_to_num(1,1,0) from dual;

BIN_TO_NUM(1,1,0)

————————

6

1     If all the bits are zero then it produces zero.

2     If all the bits are null then it produces an error.

 

CHARTOROWID

This will convert a character string to act like an internal oracle row identifier or rowid.

 

ROWIDTOCHAR

This will convert an internal oracle row identifier or rowid to character string

 

TO_NUMBER

This will convert a char or varchar to number.

 

TO_CHAR

This will convert a number or date to character string

 

TO_DATE

This will convert a number, char or varchar to a date

Comments