![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to build an oracle function, in a 10g Unicode database, that accepts a varchar, of any length, and returns a translation. It will translate all found DOS NL to UNIX NL, or UNIX NL to DOS NL. It has to be bullet proof. I'm off to give this a try with the regular express package, but I'd like to get any input from the Oracle Jones. Thank you. |
#3
| |||
| |||
|
|
On Thu, 13 Jan 2011 12:52:30 -0800, oldyork90 wrote: I want to build an oracle function, in a 10g Unicode database, that accepts a varchar, of any length, and returns a translation. *It will translate all found DOS NL to UNIX NL, or UNIX NL to DOS NL. *It has to be bullet proof. *I'm off to give this a try with the regular express package, but I'd like to get any input from the Oracle Jones. Thank you.. Let me try and take a shot: you would need to replace \n\r (DOS standard) with \n (Unix standard). You mentioned Oracle 10g, which supports regular expressions. That shouldn't be very hard to do. --http://mgogala.byethost5.com |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Why do it inside a database call what the operating systems provide already? |
#6
| |||
| |||
|
|
On Sat, 15 Jan 2011 17:45:53 -0800, John Hurley wrote: Why do it inside a database call what the operating systems provide already? Because that's what he asked about. I agree with you, I normally don't do it within the database. --http://mgogala.byethost5.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |