Suppose I want to update TableA (50 rows) with TableB (single row) .. where the COLUMN NAMES (about 80 columns) are the same for both tables .....
is there a way to avoid having to list all the columns I want to update .... say I want to update 60 "contiguous" columns in TableA ... do I have to SET all 60 columns ..or is there a way to kind of match the colums in the 2 tables
UPDATE TableA
SET col3 = b.col3,
col4 = b.col4,
col5 = b.col5,
col6 = b.col6,
col7 = b.col7
FROM TableA a , TableB b
???????????? I'm I being lazy? .... please help!
is there a way to avoid having to list all the columns I want to update .... say I want to update 60 "contiguous" columns in TableA ... do I have to SET all 60 columns ..or is there a way to kind of match the colums in the 2 tables
UPDATE TableA
SET col3 = b.col3,
col4 = b.col4,
col5 = b.col5,
col6 = b.col6,
col7 = b.col7
FROM TableA a , TableB b
???????????? I'm I being lazy? .... please help!