How to change a table name using an SQL query?

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

    Syntex for latest MySQL versions has been changed.

    So try RENAME command without SINGLE QUOTES in table names.

    RENAME TABLE old_name_of_table TO new_name_of_table;

提交回复
热议问题