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 7187219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:47:47+00:00 2026-05-28T18:47:47+00:00

I am very new to sql querys and I am looking for a way

  • 0

I am very new to sql querys and I am looking for a way to remove the following string from anywhere in my database: [lesson-navigation] including the square brackets. (Some instances have an unnecessary extra space before and/or after the string that would be nice to delete as well if possible too.

This was a shortcode that I was inserting into my site, but then decided to implement it into the template instead. Now I have over 2000 instances of this in various places in my database and want to remove it.

Thanks in advance for your help.
~Cam

  • 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-05-28T18:47:48+00:00Added an answer on May 28, 2026 at 6:47 pm

    Use REPLACE() to perform a string replacement that removes the string from each column. If this string appears in multiple columns, you’ll need to perform the query below for each column, or specify each column in the query (second example):

    UPDATE tablename SET columnname = REPLACE(columnname, '[lesson-navigation]', '');
    
    /* Replace in multiple columns */
    UPDATE tablename SET
      columnname = REPLACE(columnname, '[lesson-navigation]', ''),
      columnname2 = REPLACE(columnname2, '[lesson-navigation]', ''),
      columnname3 = REPLACE(columnname3, '[lesson-navigation]', '')
    ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im very new to SQL but need to write a query to do the
Hi I'm very new to sql but have been passed a job in which
I am a very experienced MS Sql developer, and a few new job positions
I am VERY new to ASP.NET. I come from a VB6 / ASP (classic)
I'm very new to Delphi and received the following piece of code (left out
Hey, I am very new to entity, sql, c#, and asp.net so this might
I'm very new to Entity Framework, that's my disclaimer! I have a SQL 2008
I am very new to SQL when I execute the below query it returns
im very new to this and have a very basic knowledge php and SQL
I'm very new to php/SQL (1 day) so forgive me if I am doing

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.