当前位置:网站首页>借助 Navicat for MySQL 软件 把 不同或者相同数据库链接中的某数据库表数据 复制到 另一个数据库表中
借助 Navicat for MySQL 软件 把 不同或者相同数据库链接中的某数据库表数据 复制到 另一个数据库表中
2022-07-05 07:22:00 【12程序猿】
方式一:见 mysql如何把 一个数据库中的表数据 复制到 另一个数据库表中(两个数据库不在同一个数据库链接下) ,这里不再累赘
方式二:借助 Navicat for MySQL 软件
1.打开要复制的数据,按需检索数据,然后点击导出
2.在下面的弹窗中 按需 选择点击 “当前3条记录”
3.选择导出格式,选择你想要的格式, 我这里选择导出 SQL脚本文件
4.点击下一步
5.选择导出字段,由于我不想导出 id(主键自增)字段,所以 我把id取消勾选。然后点击下一步
6.点击下一步
7.点击开始
8.根据 导出路径,得到对应的sql

INSERT INTO `warn_message`(`device_id`, `device_type`, `extend_json`, `install_place_id`, `pound_order_id`, `rational_deviation`, `real_deviation`, `overtime_duration`, `warn_type`, `deal_flag`, `deal_result`, `active_flag`, `created_user`, `created_time`, `updated_user`, `updated_time`, `warning_level`, `organization_id`, `start_time`, `end_time`, `description`, `resolver`, `third_warn_id`, `relation_user_id`) VALUES (1842, 8, NULL, 102, 0, 0.000, 0.000, 0, 0, 1, '系统自动解除预警', 1, 0, '2021-02-03 11:23:00', 0, '2021-02-03 14:40:00', 3, 1047, '2021-02-03 11:23:00', '2021-02-03 14:40:00', NULL, NULL, '6534', NULL);
INSERT INTO `warn_message`(`device_id`, `device_type`, `extend_json`, `install_place_id`, `pound_order_id`, `rational_deviation`, `real_deviation`, `overtime_duration`, `warn_type`, `deal_flag`, `deal_result`, `active_flag`, `created_user`, `created_time`, `updated_user`, `updated_time`, `warning_level`, `organization_id`, `start_time`, `end_time`, `description`, `resolver`, `third_warn_id`, `relation_user_id`) VALUES (1842, 8, NULL, 102, 0, 0.000, 0.000, 0, 0, 1, '系统自动解除预警', 1, 0, '2021-02-03 11:43:00', 0, '2021-02-03 14:40:00', 3, 1047, '2021-02-03 11:43:00', '2021-02-03 14:40:00', NULL, NULL, '6534', NULL);
INSERT INTO `warn_message`(`device_id`, `device_type`, `extend_json`, `install_place_id`, `pound_order_id`, `rational_deviation`, `real_deviation`, `overtime_duration`, `warn_type`, `deal_flag`, `deal_result`, `active_flag`, `created_user`, `created_time`, `updated_user`, `updated_time`, `warning_level`, `organization_id`, `start_time`, `end_time`, `description`, `resolver`, `third_warn_id`, `relation_user_id`) VALUES (1842, 8, NULL, 102, 0, 0.000, 0.000, 0, 0, 0, '系统自动解除预警', 1, 0, '2021-02-03 12:11:00', 0, '2021-02-03 13:56:00', 3, 1047, '2021-02-03 12:11:00', '2021-02-03 13:56:00', NULL, NULL, '6534', NULL);
9.把上面得到的sql语句,在目标数据库中进行执行
执行结果:

边栏推荐
- Microservice registry Nacos introduction
- Unity ugui how to match and transform coordinates between different UI panels or uis
- How to deal with excessive memory occupation of idea and Google browser
- Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)
- PHY drive commissioning - phy controller drive (II)
- C learning notes
- [OBS] x264 Code: "buffer_size“
- 玩转gRPC—深入概念与原理
- Basic series of SHEL script (I) variables
- Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
猜你喜欢

Daily Practice:Codeforces Round #794 (Div. 2)(A~D)

Tshydro tool

PHY drive commissioning --- mdio/mdc interface Clause 22 and 45 (I)

M2dgr slam data set of multi-source and multi scene ground robot

How to delete the virus of inserting USB flash disk copy of shortcut to

docker安装mysql并使用navicat连接

【软件测试】02 -- 软件缺陷管理

Idea to view the source code of jar package and some shortcut keys (necessary for reading the source code)

并发编程 — 死锁排查及处理

Negative number storage and type conversion in programs
随机推荐
DelayQueue延迟队列的使用和场景
网易To B,柔外刚中
HDU1232 畅通工程(并查集)
The SQL implementation has multiple records with the same ID, and the latest one is taken
Mipi interface, DVP interface and CSI interface of camera
【软件测试】02 -- 软件缺陷管理
(top) pretty girl binary color code portal
Inftnews | drink tea and send virtual stocks? Analysis of Naixue's tea "coin issuance"
Batch convert txt to excel format
Course learning accumulation ppt
Chapter 2: try to implement a simple bean container
Import CV2, prompt importerror: libcblas so. 3: cannot open shared object file: No such file or directory
Shadowless cloud desktop - online computer
C learning notes
PHY drive commissioning --- mdio/mdc interface Clause 22 and 45 (I)
[software testing] 02 -- software defect management
HDU1231 最大连续子序列(分治or动规or双指针)
PowerManagerService(一)— 初始化
Ros2 - ros2 vs. ros1 (II)
iNFTnews | 喝茶送虚拟股票?浅析奈雪的茶“发币”