Please help im stuck mysql problem

Discussion in 'MySQL' started by ging999, May 14, 2010.

  1. #1
    I need to change all entrys in the url colum to be the same and i just dont know how, there are 25,000 so i cant do it one at a time.

    I have attatched a pic if it helps

    Please help

    Thanks
     
    ging999, May 14, 2010 IP
  2. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Why can't you do it all at once? This query will do it:

    UPDATE shorturl_short SET url='insert url value here';
     
    plog, May 14, 2010 IP
  3. ging999

    ging999 Well-Known Member

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Thanks plog exactly what i needed spot on
     
    ging999, May 15, 2010 IP
  4. ging999

    ging999 Well-Known Member

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #4
    Is is also posible to spesify a range of rows or only replace rows that contain a certain word
     
    ging999, May 15, 2010 IP
  5. swashata

    swashata Member

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #5
    User WHERE statement:
     
    swashata, May 15, 2010 IP
  6. ging999

    ging999 Well-Known Member

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #6
    Many Thanks
     
    ging999, May 20, 2010 IP