Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 MS SQL Server 中重命名表名。我已经创建了表。在 MS SQL Server 中更改表名时需要。
谢谢
使用sp_rename:
sp_rename
EXEC sp_rename 'dbo.old_table_name', 'new_table_name';
这是假设您的表位于 schema 中dbo。
dbo