SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    455
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    remove duplicate spaces mysql

    This string is in a table column called complete_address: "2921 N 73RD".

    I need to get rid of the double space between "N" and "73RD".

    Why doesn't this code work?:

    Code:
    UPDATE master SET complete_address = REPLACE(complete_address,'  ',' ')

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    455
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Figured it out. Thanks for the time you spent reading my topic.


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
  •