update : Eliminate blancs [message #8971] |
Wed, 08 October 2003 10:42 |
Abiad
Messages: 9 Registered: October 2003
|
Junior Member |
|
|
Hi,
Say I have EMP table
EMP (empno, job)
empno job
1 'president'
2 'clerk'
3 'clerk '
4 'clerk'
5 'manager '
6 'manager'
I want to eliminate the blancs. We dont know the string to replace, but we know that is the string whith 1 blanc is always in the end.
SQL> update table emp
set job=replace(job, 'clerk ', 'clerk') ;
idem for manager
Thanks for help
YA
|
|
|
|
|
|
|
|
Re: update : Eliminate blancs [message #9013 is a reply to message #8973] |
Fri, 10 October 2003 13:22 |
Yhab
Messages: 7 Registered: October 2003
|
Junior Member |
|
|
Thank you Todd,
Euhh blancs between words was eliminated too (all blacncs in a string was eliminated)
I can use your QUERY for other usage
For my need, TRIM work well
Thank you
YA
|
|
|