SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 deleting strings within sql table field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

michael999
Starting Member

9 Posts

Posted - 12/27/2012 :  09:32:13  Show Profile  Reply with Quote
hi
What is the sql required to remove a substring from within a column on the database please?
I have to get it right because I cannot affect the rest of the data in each column.
thanks
michael

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 12/27/2012 :  09:40:38  Show Profile  Reply with Quote
Typically one would use STUFF or REPLACE functions for the removal along with CHARINDEX or PATINDEX functions to identify the characters that need to be removed. There are examples on the links on this page
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000