当前位置:网站首页>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 :
边栏推荐
- [node] differences among NPM, yarn and pnpm
- ImportError: No module named ‘Tkinter‘
- IPage can display data normally, but total is always equal to 0
- [framework] multi learner
- Inftnews | drink tea and send virtual stocks? Analysis of Naixue's tea "coin issuance"
- 【Node】nvm 版本管理工具
- Idea shortcut key
- Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
- 氢氧化钠是什么?
- list. files: List the Files in a Directory/Folder
猜你喜欢
Light up the running light, rough notes for beginners (1)
DataGrid offline installation of database driver
Word import literature -mendeley
I implement queue with C I
Hdu1232 unimpeded project (and collection)
The mutual realization of C L stack and queue in I
window navicat连接阿里云服务器mysql步骤及常见问题
Delayqueue usage and scenarios of delay queue
Inftnews | drink tea and send virtual stocks? Analysis of Naixue's tea "coin issuance"
Line test -- data analysis -- FB -- teacher Gao Zhao
随机推荐
Shadowless cloud desktop - online computer
What if the DataGrid cannot see the table after connecting to the database
The mutual realization of C L stack and queue in I
Import CV2, prompt importerror: libcblas so. 3: cannot open shared object file: No such file or directory
The problem of configuring opencv in qt5.13.2 is solved in detail
Powermanagerservice (I) - initialization
An article was opened to test the real situation of outsourcing companies
Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
611. Number of effective triangles
CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)
Detailed explanation of miracast Technology (I): Wi Fi display
ModuleNotFoundError: No module named ‘picamera‘
Hdu1232 unimpeded project (and collection)
NPM and package common commands
Target detection series - detailed explanation of the principle of fast r-cnn
Unity ugui how to match and transform coordinates between different UI panels or uis
[vscode] recommended plug-ins
arcpy. SpatialJoin_ Analysis spatial connection analysis
[tf1] save and load parameters
Delayqueue usage and scenarios of delay queue