Migrating data tables on the Navicat

Source: Internet
Author: User

We studied the Navicat how to do the data table migration, about three ways:

A, PostgreSQL for example, the source data table SQL dump, exported to SQL (which contains the creation of the database structure and insert data SQL), and then run SQL in the target database, but the main reason is that the exported SQL is a schema name, so to find the target database schema name to replace, Also the self-increment field of the SQL is the method of binding the sequence:

"id" int4 DEFAULT nextval (' simple_captcha_data_id_seq ':: regclass) Not NULL,
However the target database is not this sequence, you can create a new sequence first:

Create sequence Tbl_xulie2_id_seq increment by 1 minvalue 1 no maxvalue start with 1;
Here start with can be changed to the same value as the source sequence (you should also create the self-increment field with the serial keyword when creating the table).

B, just pass the table data, do not pass the structure, you can use NAVICAT Export Wizard and Import Wizard, export to txt contains column name, and then import to the target database can;

C, Navicat itself provides a function of data transmission, if using the original table CTRL + C, the target database Ctrl + V can also inspire this function, but the transmission will be error, I have the corresponding sequence also transmitted in the past there are still errors, I did not delve into this problem, gave up.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.