If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Removing non-printable characters

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-29-04, 10:53
dj982020 dj982020 is offline
Registered User
 
Join Date: Apr 2004
Posts: 2
Exclamation Removing non-printable characters

I need to remove all non-printable characters in my text and memo fields. Does SQL handle this?
Thanks in Advance!!
Reply With Quote
  #2 (permalink)  
Old 04-29-04, 12:10
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Which SQL engine, and how do you define "printable" characters?

-PatP
Reply With Quote
  #3 (permalink)  
Old 05-02-04, 19:55
Nocopy Nocopy is offline
Registered User
 
Join Date: May 2004
Location: Redwood Shores, CA
Posts: 68
In oracle

replace(your_dirty_field,chr(10),null) will do.

You have to do one by one this way. I am not sure if translate() will do better. I think it won't even work. It never hurts to try but you can do it just as well. (That is if you have oracle)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On