当前位置:网站首页>借助 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语句,在目标数据库中进行执行
执行结果:

边栏推荐
- docker安装mysql并使用navicat连接
- Qu'est - ce que l'hydroxyde de sodium?
- Light up the running light, rough notes for beginners (1)
- M2DGR 多源多场景 地面机器人SLAM数据集
- Tshydro tool
- What is sodium hydroxide?
- SOC_ SD_ CMD_ FSM
- Brief description of inux camera (Mipi interface)
- Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
- Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
猜你喜欢

Powermanagerservice (I) - initialization

Unforgettable summary of 2021
![[software testing] 02 -- software defect management](/img/2f/9987e10e9d4ec7509fa6d4ba14e84c.jpg)
[software testing] 02 -- software defect management

Tshydro tool

SD_ CMD_ RECEIVE_ SHIFT_ REGISTER

Concurrent programming - how to interrupt / stop a running thread?

Ros2 - function package (VI)

CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)

网易To B,柔外刚中

IPage can display data normally, but total is always equal to 0
随机推荐
2022.06.27_ One question per day
Rough notes of C language (1)
NPM and package common commands
[vscode] prohibit the pylance plug-in from automatically adding import
Energy conservation and creating energy gap
Powermanagerservice (I) - initialization
并查集理论讲解和代码实现
氢氧化钠是什么?
Word import literature -mendeley
玩转gRPC—深入概念与原理
Implementation of one-dimensional convolutional neural network CNN based on FPGA (VIII) implementation of activation layer
docker安装mysql并使用navicat连接
HDU1231 最大连续子序列(分治or动规or双指针)
【idea】Could not autowire. No beans of xxx type found
What is soda?
[software testing] 06 -- basic process of software testing
并发编程 — 如何中断/停止一个运行中的线程?
The SQL implementation has multiple records with the same ID, and the latest one is taken
M2dgr slam data set of multi-source and multi scene ground robot
Concurrent programming - deadlock troubleshooting and handling