move table from one schema to another schema ?

后端 未结 3 789
北海茫月
北海茫月 2020-12-25 09:42

I want to move table from one schema to another schema in mysql , can anybody tell me how can I do this .

3条回答
  •  时光说笑
    2020-12-25 10:22

    Moving tables with space characters in between should be enclosed.

    Example:

    ALTER TABLE `schema1`.`tbl somename` 
    RENAME TO  `schema2`.`tbl somename` ;
    

提交回复
热议问题