Triggers have a special inserted table that will contain the "after" version of the rows affected by the INSERT or UPDATE operation. Similarly, there is a deleted table that will contain the up-to- deleted version of rows affected by the UPDATE or DELETE operation.
So, for your specific case:
UPDATE t SET t.columnB = t.columnA FROM inserted i INNER JOIN table t ON i.PrimaryKeyColumn = t.PrimaryKeyColumn
source share