How to change a table name using an SQL query?

后端 未结 10 1991
北海茫月
北海茫月 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:36

    rename table name :

    RENAME TABLE old_tableName TO new_tableName;
    

    for example:

    RENAME TABLE company_name TO company_master;
    

提交回复
热议问题