I am doing some databese thing, I need copy one table from one model to another, but i try many ways there no effect. Is there any way for doing this?
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- mySQL alter table on update, current timestamp
create table .m_property_nature like .m_property_nature;
INSERT INTO .m_property_nature SELECT * from .m_property_nature;
You can get the crate table query from table info and use the same query on different database instance.
I think it is worth mentioning that
Your best option is probably to create a stripped down version of the model that contains the objects you want to carry over. Then open the target model and run
File -> Include Model...
. Select the stripped down source model and there you go.If you just want to do a single table through the MySQL Workbench.
In MySQL Workbench:
A create statement for the table will be copied to your clipboard similar to the below:
Create the table in the new database
Alter the create table code to include the database to create the table on.
Then click the Execute button (looks like a lightening Bolt)
That will copy the table schema from one db to another using the MySQL workbench. Just refresh the tables in the database and you should see your newly added table