October 27, 2008 at 9:54 am
How do I query a field (address) in a table (tblAdd) to return records containing address information which contain "quotes" so I can remove said quotes which should not be in this data ?
select * from tblAdd where address contains(%'"'%) ?
Thanks...
October 27, 2008 at 10:13 am
CONTAINS is really for full text queries; for something like this, just use like:
select * from tblAdd where address LIKE '%"%'
UPDATE tblAdd
address= Replace(address,'",'')
where address LIKE '%"%'
Lowell
October 27, 2008 at 10:17 am
This will show them to you...
SELECT
*
FROM tblAdd
WHERE address LIKE '%"%'
To remove them, look up REPLACE in BOL.
Greg
_________________________________________________________________________________________________
The glass is at one half capacity: nothing more, nothing less.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply