CONVERSION FUNCTIONS
CONVERSION FUNCTIONS | |||
Bin_to_num | Chartorowid | Rowidtochar | To_number |
To_char | To_date |
BIN_TO_NUMThis 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. |
ROWIDTOCHARThis will convert an internal oracle row identifier or rowid to character string |
TO_NUMBERThis will convert a char or varchar to number. |
TO_CHARThis will convert a number or date to character string |
TO_DATEThis will convert a number, char or varchar to a date |
Comments