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
 General SQL Server Forums
 New to SQL Server Programming
 remove single quotes

Author  Topic 

suji.zolutions
Starting Member

1 Post

Posted - 2012-01-18 : 06:36:30
how can remove the single quote from table
for ex:
My input is : hai sweet's
i need the output is : hai
sweets

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2012-01-18 : 06:40:12
create table #foo (yak varchar(20))
insert into #foo
select 'hai sweet''s'

select replace (yak ,'''','')from #foo

http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx
How to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page
   

- Advertisement -