当前位置:网站首页>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 :
边栏推荐
- U-boot initialization and workflow analysis
- Implementation of one-dimensional convolutional neural network CNN based on FPGA (VIII) implementation of activation layer
- How to delete the virus of inserting USB flash disk copy of shortcut to
- 2022.06.27_ One question per day
- The mutual realization of C L stack and queue in I
- Batch convert txt to excel format
- ImportError: No module named ‘Tkinter‘
- CADD course learning (5) -- Construction of chemosynthesis structure with known target (ChemDraw)
- Ugnx12.0 initialization crash, initialization error (-15)
- Jenkins reported an error. Illegal character: '\ufeff'. Class, interface or enum are required
猜你喜欢
Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
Matrix and TMB package version issues in R
UE5热更新-远端服务器自动下载和版本检测(SimpleHotUpdate)
CADD course learning (6) -- obtain the existing virtual compound library (drugbank, zinc)
Basic series of SHEL script (III) for while loop
Light up the running light, rough notes for beginners (1)
The mutual realization of C L stack and queue in I
Shadowless cloud desktop - online computer
I 用c I 实现队列
[software testing] 03 -- overview of software testing
随机推荐
The mutual realization of C L stack and queue in I
Simple operation of running water lamp (keil5)
CADD course learning (5) -- Construction of chemosynthesis structure with known target (ChemDraw)
ModuleNotFoundError: No module named ‘picamera‘
Basic series of SHEL script (I) variables
Don't confuse the use difference between series / and / *
行测--资料分析--fb--高照老师
Simple use of timeunit
Qu'est - ce que l'hydroxyde de sodium?
golang定时器使用踩的坑:定时器每天执行一次
What does soda ash do?
SOC_ SD_ CMD_ FSM
[software testing] 02 -- software defect management
[vscode] recommended plug-ins
Unity ugui how to match and transform coordinates between different UI panels or uis
Idea push project to code cloud
第 2 章:小试牛刀,实现一个简单的Bean容器
(tool use) how to make the system automatically match and associate to database fields by importing MySQL from idea and writing SQL statements
Mathematical analysis_ Notes_ Chapter 8: multiple integral
Matrix and TMB package version issues in R