[英]How can i import a schema of a table from one database to an existing table in another without altering the data in it?
I want to import/copy a schema of a table from e.g.我想从例如导入/复制表的架构"DB1 database" another table in "DB2 database" without doing anything to the data in it.
“DB1 数据库”是“DB2 数据库”中的另一个表,而不对其中的数据做任何事情。 When I try to import the structure to the existing table it gives an error:
当我尝试将结构导入现有表时,会出现错误:
" #1050 - Table 'access_logs' already exists "
“#1050 - 表‘access_logs’已经存在”
In phpmyadmin Go to 'Opeartions' Tab and then go to 'Copy Table to' section In that select the database in which you want to copy the table and give a name to the table. In phpmyadmin Go to 'Opeartions' Tab and then go to 'Copy Table to' section In that select the database in which you want to copy the table and give a name to the table. You can choose options of Structure or Structure with data as per your requirements.
您可以根据需要选择结构或结构与数据的选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.