On 11 Nov, 16:05, amj1020 <angelicre... (AT) hotmail (DOT) com> wrote:
Quote:
How do I update a new column in a table with data from a temp table
*Table with added field errormsg
Table1
Name char(50)
clientkey varchar(50)
ErrorMsg varchar(50)
Temp table
Clientkey varchar(50)
ErroMsg varchar(50)
Right now in table1 the ErrorMsg field is null for every Name. |
Try the following, it will set the ErrorMsg values in Table1 to be
equal to the ErrorMsg values in the temp table.
UPDATE Table1
SET Table1.ErrorMsg = TempTable.ErrorMsg
WHERE Table1.ClientKey = TempTable.ClientKey
Thanks.