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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Carriage Returns 1

Status
Not open for further replies.

borisbe

Technical User
Aug 15, 2005
73
US
I have a text file with email addresses that I'm importing into a table and there are carriage returns after each email address which is causing problems. Is it possible to remove the carriage returns using a query?

Thanks
 
Sure. After you import the text file, do:
[tt]
UPDATE tbl SET email=REPLACE(email,'\n','')
[/tt]
 
You have saved the day. Thank you so much. It worked wonderfully.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top