Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove spaces from value in column.

Status
Not open for further replies.

jeisch

MIS
May 30, 2003
23
0
0
US
I have a column in a table that contains values with spaces include. Ex "12 F7 35". I need to remove all spaces from this column. It needs to be "12F735". I tried using translate, but that seems to only translarte from one character to another, it won't actually remove the space.

Thanks

 
Hi Jeisch,

Try the REPLACE function swapping a space for nothing, like this:
Code:
SELECT REPLACE ('12 F7 35', ' ', '')
FROM SYSIBM.SYSDUMMY1

Hope this helps,

Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top