How to clean a columns with a dots at the beginning and end of a text using T SQL for SQL Server? -


Description:

  • I have a table (e-mail address) table (Business User) stores my database.

Problem:

  • For example, some lines of data have a point at the beginning of this column. Jane Doe@mycompany.com (dot I want to get rid of just jeter in the jetter)
  • Some lines of data are dot at the end of this column For example John .doe @ mycompany .com (Dot I want to get rid of dot dot after bus charater m com)

Resolution:

  • I'm using SQL Server 2008

Using the basic functionality < / P>

Start with a period of

  email address = SUBSTRING (email address, 2, LAN (email address)) for updated business sets where the email address is preferred. Last Updated with:  

  Update Businesspersons email address = SUBSTRING (email address, 1, lan (email address) -1) Where do you like the email '%.'  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -