Kenno’s OpenNote

SQL: Update with values from another table

Posted in MS SQL by kenno on August 13, 2009

UPDATE Log
SET Username = u.Username, Name = u.Name
FROM Users u
Where u.Id = userid

Source: codesnippets.joyent.com

Tagged with: ,