从mysql中的表导出和导入所选条目

从mysql中的表导出和导入所选条目,mysql,Mysql,以下是场景: database on host1: rhel6sales table: customer particular customer i want to export, and then import to another host: select * from customer where handle = 'CARDD2'; 我可以使用mysqldump复制整个“customer”表,但这不是我想要的。我只想导出然后导入卡片2 现在CARDD2可能与其他表有连接和键约束,所以

以下是场景:

database on host1: rhel6sales
table:  customer
particular customer i want to export, and then import to another host: select * from customer where handle = 'CARDD2';
我可以使用mysqldump复制整个“customer”表,但这不是我想要的。我只想导出然后导入卡片2

现在CARDD2可能与其他表有连接和键约束,所以如果我只是导出和导入customer,或者只是CARDD2,我将如何处理其他表,它们的数据会自动导出吗?所以当我导入时,它会检查并实现我要导入到的数据库中的连接和键约束?假设两个数据库具有相同的模式