How to change a table name using an SQL query?

后端 未结 10 2004
北海茫月
北海茫月 2020-12-12 17:05

How can I in change the table name using a query statement?

I used the following syntax but I couldn\'t find the rename keyword in SQL server 2005.

A         


        
10条回答
  •  孤街浪徒
    2020-12-12 17:40

    ALTER TABLE table_name RENAME TO new_table_name; works in MySQL as well.

    Alternatively: RENAME TABLE table_name TO new_table_name;

提交回复
热议问题