To update a field in a database table with Navicat

Source: Internet
Author: User

Recently need in a table according to a certain value of table B to sort out, helpless SQL technology is not enough, do not know how to connect to achieve the goal, then think of a table to add the target value of table B field, and then by updating a table so that a table has a Target field, and then ranking .... enough to tangle.

Talk less about direct culture:

The first step is to use NAVICAT to export the target field of table B to the file, I have only two fields here so in addition to the key value, the remaining is the target field.

First Open the Table dialog box and click Export:

Then select All records-text file txt-Select the columns you want to export:

Then keep on the next step and finally start. Export succeeded.

Design the table in a table, add fields, here our target field is rank

Then select the A table you want to import, click Import-Text file txt-select file-click Next until here:

Select it according to the Red circle in the figure, the ID and disease_id are one by one corresponding key values, rank is the key value you want to fill in (Here you need to first add the field in a table). Next

Check the update option, and it will begin to update automatically at the last point! Original Oh, ask for praise =. =

To update a field in a database table with Navicat

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.