Linda, I just did something like
this yesterday. You will need to use the TRANSLATE function. So you can use an
SQL statement like: update <table
name> set fld1 =
translate(fld1,chr(09),’-‘); Make sure you only have one
weird character in the field though. I actually and a carriage return and a new
line back to back and, of course, you can’t see them. You might want to use the
DUMP function to look at what is really in the field. Good luck! Bill
Carle AT&T Database
Administrator 816-995-3922 [EMAIL PROTECTED] -----Original
Message----- Hi, Sometime in the past, data was loaded into
tables from spreadsheets and the tabs and form feeds were included in the
data. I can locate all the bad data, and am looking for a clear method to
remove only the 'bad' character from a field, despite where it occurs.
For example, you can see 09 at the end of the rawtohex column. I need to
change Canada-Albertachr(9) to 'Canada-Alberta'. The form feeds in the
second example are in a numeric field. If anyone has had to do this, I'd
appreciate knowing your method. Thanks, Linda Table
Column
Contents
Rawtohex Table Column
Contents Rawtohex |
RE: Need idea to strip tabs (chr(9) hex 9) and carriage return (chr(1
Carle, William T (Bill), ALINF Fri, 18 Jan 2002 13:29:13 -0800
Title: Need idea to strip tabs (chr(9) hex 9) and carriage return (chr(13) hex
0D) from fields
- Need idea to strip tabs (chr(9) hex 9) and ... Carle, William T (Bill), ALINF
- Need idea to strip tabs (chr(9) hex 9)... Hagedorn, Linda