Results 1 to 2 of 2

Thread: Noob question - phpadmin search and replace sql query - Please HELP

  1. #1
    Join Date
    Oct 2011
    Posts
    1

    Exclamation Noob question - phpadmin search and replace sql query - Please HELP

    I just have a noob question. My coder is MIA and I have an issue to fix that could cost me a lot of time doing it manually.

    Basically, I have a database with a unique identifier (blog_id), a set of 100 posts with the same user id (user_id) and I need to replace a link in the set of 100 posts with that user id. The link i need to replace is in the (content) column.

    Basically, i need the query to SELECT the user_ID i have, and REPLACE the link in the (CONTENT) column that has that link that I want to change to the New link (I have both the new link and old link)

    If someone could help me, I'd greatly appreciate it. I just need the right Sql query.

  2. #2
    Join Date
    May 2011
    Posts
    105

    Re: Noob question - phpadmin search and replace sql query - Please HELP

    Don know if i am correct over here i would advise you to check the following code


    Code:
    UPDATE wp_posts1 SET post_content1 = REPLACE (post_content1, 'old link', 'new link');

Similar Threads

  1. SQL Query for different search.
    By Hadcourt in forum Software Development
    Replies: 6
    Last Post: 31-05-2011, 07:51 PM
  2. Google query suggestions in the search box
    By DHR in forum Technology & Internet
    Replies: 7
    Last Post: 19-08-2009, 07:20 AM
  3. SQL find and replace query
    By Seraphim in forum Software Development
    Replies: 3
    Last Post: 26-05-2009, 01:40 PM
  4. LDAP Search Query Syntax
    By etienne in forum Active Directory
    Replies: 1
    Last Post: 06-08-2008, 07:47 PM
  5. LDAP Search Query Error
    By bjude in forum Active Directory
    Replies: 3
    Last Post: 17-03-2006, 10:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,956,452.17718 seconds with 16 queries