Keep adding into to same field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gerrybytes
    New Member
    • Apr 2008
    • 11

    Keep adding into to same field

    Hi,

    I was just wondering is it possible in mysql to keeping adding info to a particular field.

    I thought maybe the update query would work but that clears and previous data held in that field and all I want to do is add to it.

    Thanks

    G
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Originally posted by gerrybytes
    Hi,

    I was just wondering is it possible in mysql to keeping adding info to a particular field.

    I thought maybe the update query would work but that clears and previous data held in that field and all I want to do is add to it.

    Thanks
    G
    Use the CONCAT() function in your SET attribute. Like[code=sql]UPDATE tbl_name SET field=CONCAT(fi eld, 'XXX');[/code]Ronald

    Comment

    • gerrybytes
      New Member
      • Apr 2008
      • 11

      #3
      Originally posted by ronverdonk
      Use the CONCAT() function in your SET attribute. Like[code=sql]UPDATE tbl_name SET field=CONCAT(fi eld, 'XXX');[/code]Ronald
      Thanks Ronald,

      You have been of great help.

      G

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        Originally posted by gerrybytes
        Thanks Ronald,

        You have been of great help.

        G
        You are welcome any tme. See you around.

        Ronald

        Comment

        Working...