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

  • SEARCH
  • Home
  • 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 8605787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:55:36+00:00 2026-06-12T02:55:36+00:00

I have a field urn_sem.studentid that I’d like to replace a few characters in;

  • 0

I have a field urn_sem.studentid that I’d like to replace a few characters in; for example:

  • ABC/2011/BCOMH_NC/I/12 → ABC/2011/BCOMH/I/12
  • ABC/2011/BCOMH_NC/I/24 → ABC/2011/BCOMH/I/24

I’ve tried this query:

SELECT REPLACE(studentid, 'KNC/2011/BCOMH_NC/', ' KNC/2011/BCOMH/')
  FROM urn_sem

but it doesn’t show the new value.

  • 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-12T02:55:37+00:00Added an answer on June 12, 2026 at 2:55 am

    Do you want this:

    update urn_sem
        set studentid = REPLACE(studentid, 'KNC/2011/BCOMH_NC/', ' KNC/2011/BCOMH/')
        where studentid like '%KNC/2011/BCOMH_NC/%'
    

    The WHERE clause is optional. It ensures that the replace is only on rows that change.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have field that it's not a key (it's text) and I want to
I have field like a_b_c_d I want as the output a b c_d, this
I have field X that contains text with spaces in the end of the
I have a field on my User model that is protected because it determines
i have field in databaase. which contains special characters. i want to escape these
I have a database table that looks like this: CREATE TABLE IF NOT EXISTS
i have field with content like this: 1, 2, 100 first two numbers can
I have field(time) with data like this: 9:00-11:00 am 7:00-9:00 am 6:30-7:30 pm 1:00-2:30
I have field return System.Type and I know that it is not serializable. So
I have field int displayOrder = 1 in Grails domain object and would like

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.