sql rename table name query code example
Example 1: sql change table name
ALTER TABLE exampletable RENAME TO new_table_name;
Example 2: alter table name sql
-- Microsoft SQL style
EXEC sp_rename 'TableOldName', 'TableNewName';
ALTER TABLE exampletable RENAME TO new_table_name;
-- Microsoft SQL style
EXEC sp_rename 'TableOldName', 'TableNewName';