Generate relationship for renamed table¶
A table can be renamed by using a system procedure in SQLServer/AzureSQL called sp_rename. In the following sample procedure, a table gets renamed from EmployeeSales to FactEmployeeSales followed by INSERT from the renamed table:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
Result:
.png)
With Oracle, ALTER TABLE table_name RENAME [TO|AS] new_table_name is used to rename a table.
Result:
