Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Posts
    15

    Unanswered: Update table from values in another..

    Hi ya,

    I need to update two columns in one table from information in another table..

    Table1

    ID, UserID

    Table2

    ID, NewUserID

    How can I write this update statment?

    Thanks!

  2. #2
    Join Date
    Aug 2003
    Posts
    328

    Re: Update table from values in another..

    Try:
    update table1
    set id=(select id from table2),userid=(select newuserid from table2)

  3. #3
    Join Date
    Dec 2003
    Posts
    454
    Please give us more details of your post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •