Scenario:Rename many customer names.
Solution:If the table has many relations, it will take a long time to rename through the record information one by one. We can use the table method renamePrimaryKey() in a batch class and run in batch mode.
select firstOnly custTable
where custTable.AccountNum == 'XXXX-WC-00002';
custTable.AccountNum = 'XXXX-WC-00001';