Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Finding quotation marks in your data

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-04-01 : 09:19:44
John Niemiec writes "Hi, another question for you.

Our database has varchar fields setup and the fields
contain values of a single quotation mark. How do I find and replace these when coding this?

I tried this

Select * from Tablename
where Last_Name LIKE '%'%'

BUT THIS GIVE ME AN ERROR, like I have an entra quote in there instead of just looking for the quote that is contained in
the data?

What am I to do, I have to get rid of these quotes...

jn"

Nazim
A custom title

1408 Posts

Posted - 2002-04-01 : 09:25:57
A little search could have saved you.

i believe Graz has written a article on this.

newayz you can check for replace(columnmame,'''','a')


HTH

--------------------------------------------------------------
Go to Top of Page
   

- Advertisement -