I want to move table from one schema to another schema in mysql , can anybody tell me how can I do this .
我想在mysql中将表从一个模式移动到另一个模式,有人能告诉我怎么做吗?
1 个解决方案
#1
69
If both schema is on same server then Alter table can be used to move tables from one db to another.
如果两个模式都在同一个服务器上,那么可以使用Alter table将表从一个db移动到另一个db。
alter table old_db.fooTable rename new_db.fooTable
#1
69
If both schema is on same server then Alter table can be used to move tables from one db to another.
如果两个模式都在同一个服务器上,那么可以使用Alter table将表从一个db移动到另一个db。
alter table old_db.fooTable rename new_db.fooTable