Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8281177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:56:24+00:00 2026-06-08T09:56:24+00:00

In my table I want to remove first 7 characters from the Title column.

  • 0

In my table I want to remove first 7 characters from the Title column.

I have a table like below and I want to remove the 'Copy of' prefix:

Title
---------------------
Copy ofthis is tile1
Copy ofthis is another tile2

I tried this:

Update MyTable SET Title=(SELECT RIGHT(Title,LEN(Title)- 7) AS Title) 
  WHERE Title LIKE 'Copy of%'

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:56:27+00:00Added an answer on June 8, 2026 at 9:56 am

    You don’t need a subquery for this, and generally you don’t need to check the length to figure out how long the output should be. Assuming this isn’t a varchar(max), you could do:

    UPDATE dbo.MyTable
      SET Title = SUBSTRING(Title, 8, 8000)
      WHERE Title LIKE 'Copy of%';
    

    Or you could do:

    UPDATE dbo.MyTable
      SET Title = STUFF(Title, 1, 7, '')
      WHERE Title LIKE 'Copy of%';
    

    You may also want to use LTRIM() in case the value is 'Copy of something' and you don’t want a leading space:

    UPDATE dbo.MyTable
      SET Title = LTRIM(STUFF(Title, 1, 7, ''))
      WHERE Title LIKE 'Copy of%';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have data like following table I want to remove Titles ( Mr. Miss,
I want to remove remove table row from table and subsequently remove the item
I have the following table: I want to insert values from the MySQL workbench.
i have users table and i have posts table i want select from users
I have a html table like this: <table> <tr id='first'> <td>text</td> </tr> <tr> <td>text</td>
I use a form where i have listed the data from database like title,
I have problem removing rows from a table according to the checkbox. Below is
I have a table of banned IPs. The first column holds the IPs, the
this table i want to create job_id dynamic Jobs Title text Job Description text
I have users table and want to SELECT some rows by bitmask criteria. I'll

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.