If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > cleansing data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-04, 11:17
mary10k mary10k is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
cleansing data

I have a table with 1.5 million rows. Each field has a text qualifier of " ". Could you please tell me if and how I can write a script to remove the quotes from each field?

Thank you.
Reply With Quote
  #2 (permalink)  
Old 11-11-04, 16:12
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Using which database engine? The string operations aren't very standard between engines, so which engine makes a considerable difference.

-PatP
Reply With Quote
  #3 (permalink)  
Old 11-11-04, 16:49
mary10k mary10k is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
Using MS SQL Server 2000
Reply With Quote
  #4 (permalink)  
Old 11-12-04, 07:36
Madhivanan Madhivanan is offline
Registered User
 
Join Date: Oct 2003
Posts: 357
Hi mary10k, try this
Code:
update tablename set filedname=replace(filedname,""" ""","")
Madhivanan
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On