|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Long2Number
Hi,
I need to convert a Long-Datatype to a Number-Datatype. Is that possible? best regards Jolli |
|
#2
|
|||
|
|||
|
Bad news - you can't use data conversion functions on the long datatype with the exception of TO_LOB() which won't help you very much.
AFAIK.... |
|
#3
|
|||
|
|||
|
Assuming the LONG is already in a table, you could try creating your own function such as
create or replace function x return number is v_big_char varchar2(32000); begin select TRIGGER_BODY into v_big_char from user_triggers where rownum = 1; return to_number(v_big_char); end; Obviously you'd have to pass the key(s) into the function so it could select the right value. |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Long2Number |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|