当前位置:网站首页>With the help of Navicat for MySQL software, the data of a database table in different or the same database link is copied to another database table
With the help of Navicat for MySQL software, the data of a database table in different or the same database link is copied to another database table
2022-07-05 07:27:00 【12 procedural ape】
Mode one : see mysql How to make Table data in a database Copied to the In another database table ( Two databases are not linked to the same database ) , There's no more encumbrance here
Mode two : With the help of Navicat for MySQL Software
1. Open the data to be copied , Retrieve data on demand , Then click export
2. In the pop-up window below On demand Choose to click “ At present 3 Bar record ”
3. Select the export format , Choose the format you want , I choose export here SQL Script files
4. Click next
5. Select export fields , Because I don't want to export id( The primary key increases automatically ) Field , therefore I put id Uncheck the . And then click next
6. Click next
7. Click Start
8. according to export path , Get the corresponding 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, ' The system automatically cancels the alert ', 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, ' The system automatically cancels the alert ', 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, ' The system automatically cancels the alert ', 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. Take what you get from above sql sentence , Execute in the target database
Execution results :
边栏推荐
- Play with grpc - go deep into concepts and principles
- Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
- Unity ugui how to match and transform coordinates between different UI panels or uis
- The number of occurrences of numbers in the offer 56 array (XOR)
- 【Node】nvm 版本管理工具
- [node] differences among NPM, yarn and pnpm
- [node] NVM version management tool
- [solved] there is something wrong with the image
- Basic series of SHEL script (I) variables
- Using GEE plug-in in QGIS
猜你喜欢
Delayqueue usage and scenarios of delay queue
M2DGR 多源多场景 地面机器人SLAM数据集
[software testing] 04 -- software testing and software development
HDU1232 畅通工程(并查集)
HDU1231 最大连续子序列(分治or动规or双指针)
An article was opened to test the real situation of outsourcing companies
Target detection series - detailed explanation of the principle of fast r-cnn
Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
Concurrent programming - deadlock troubleshooting and handling
[vscode] prohibit the pylance plug-in from automatically adding import
随机推荐
[untitled]
SD_ CMD_ RECEIVE_ SHIFT_ REGISTER
Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
NPM and package common commands
Eclipse project recompile, clear cache
Explanation of parallel search set theory and code implementation
Matrix and TMB package version issues in R
C learning notes
[vscode] prohibit the pylance plug-in from automatically adding import
Shadowless cloud desktop - online computer
Netease to B, soft outside, hard in
Batch convert txt to excel format
Import CV2 prompt importerror: libgl so. 1: Cannot open shared object file: no such file or directory
Target detection series - detailed explanation of the principle of fast r-cnn
剑指 Offer 56 数组中数字出现的次数(异或)
[vscode] search using regular expressions
PowerManagerService(一)— 初始化
氢氧化钠是什么?
list. files: List the Files in a Directory/Folder
Microservice registry Nacos introduction