Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Overwriting the value in a field with another value MS SQL

Options
  • 09-02-2009 1:39pm
    #1
    Closed Accounts Posts: 2,268 ✭✭✭


    Overwriting the value in a field with another value MS SQL

    I have an MS SQL 2000 database where if certain conditions are met I want to overwrite the value in one field with the value in another field.

    Does anyone know if this is possible (and how to do it) if both fields have a datatype of VARCHAR 50?

    Thanks

    MM


Comments

  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    UPDATE <TABLE> SET COL2 = COL1 WHERE COL1 = 'somevalue'

    ?


Advertisement