I\'m trying to figure out a way to update a record without having to list every column name that needs to be updated.
For instance, it would be nice if I could use so
If you are using Oracle, you can use rowtype
declare var_x TABLE_A%ROWTYPE; Begin select * into var_x from TABLE_B where rownum = 1; update TABLE_A set row = var_x where ID = var_x.ID; end; /
given that TABLE_A and TABLE_B are of same schema