Use dynamic SQL.
But then a single trigger can not be used for multiple table.