This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Oracle/OAS and the fly likes Help... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Help..." Watch "Help..." New topic
Author

Help...

Mike Cronin
Greenhorn

Joined: Apr 17, 2002
Posts: 25
Hi all,
I have a "log" field in an Oracle table that I need to update with a status followed by a line feed and carriage return.
Can someone advise me how to insert line feeds and carriage returns into a field in Oracle?
Thanks in advance!
Mike Cronin
[ March 31, 2004: Message edited by: Mike Cronin ]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Mike,
Are you using JDBC or the oracle command line? Either way, you need to use the escape sequences for new line or carriage return in your string when inserting the data.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mike Cronin
Greenhorn

Joined: Apr 17, 2002
Posts: 25
Hey Jeanne,
I figured it out.
Thanks so much for your quick reply
Mike Cronin
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help...
 
Similar Threads
Calling a servlet on startup
DOM contents to string instead of a file...
avoiding '#' '+' '%'
Synchronization
DOM to string in J# .NET