|
-
 Originally Posted by davey23uk
you still have to test and not give crap answers, worse than no answer at all
hello,
I tested properly Can you tell what is wrong in that?
SQL> select to_number( substr('12345-6',1,(instr('12345-6','-')-1)) ||substr('12345-6',(instr('12345
-6','-')+1),( length('12345-6')-instr('12345-6','-')) ) )
2 from dual;
TO_NUMBER(SUBSTR('12345-6',1,(INSTR('12345-6','-')-1))||SUBSTR('12345-6',(INSTR(
--------------------------------------------------------------------------------
123456
SQL> select to_number(substr('12345-6',1,(instr('12345-6','-')-1)))
2 from dual;
TO_NUMBER(SUBSTR('12345-6',1,(INSTR('12345-6','-')-1)))
-------------------------------------------------------
12345
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|