View previous topic :: View next topic |
Author |
Message |
batu544 Beginner
Joined: 02 Aug 2005 Posts: 75 Topics: 27
|
Posted: Mon Feb 11, 2008 3:32 pm Post subject: DB2 table update |
|
|
Hi,
I have DB2 table having 2 cols, in One column the values are like this
Code: |
col1 col2
-------- -----------
xxxxxx abc**hy
yyyyyy hyted#&by
|
My requirment is to find all the records having junk value in col2 and replace those by spaces.
Output of the query will be
Code: |
col1 col2
-------- -----------
xxxxxx abc hy
yyyyyy hyted by
|
( please note *, # is not the junk value. some hex value other than zero is junk value) _________________ Regards,
batu |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Feb 11, 2008 3:48 pm Post subject: |
|
|
batu544,
Define Junk values. Show the actual junk value in hex. How many of them do you have? _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
batu544 Beginner
Joined: 02 Aug 2005 Posts: 75 Topics: 27
|
Posted: Mon Feb 11, 2008 4:22 pm Post subject: |
|
|
Kolusu,
Other than a-z, A-Z, 0-9, '-', all are junk values . _________________ Regards,
batu |
|
Back to top |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
|
Back to top |
|
 |
|
|