Ways to import Excel data into SQL tables

Source: Internet
Author: User

1. Create Excel data table paired with database

2. Get the INSERT statement script in SQL to sort out the format of the Orange field

3. Each data field is converted to data in SQL format, such as: Blue section

4, and then the blue part of the data with a comma interval to join together

5, the orange part and the yellow part of the link to form a yellow part of the final INSERT statement

6. Copy and paste the yellow parts into the Query Analyzer and run the import successfully

7, if you want to delete the original input after the import needs to run the DELETE statement

This method is useful for importing data for the first time. As long as you write an INSERT statement for a record, other records can be easily obtained using Excel's copy function.

Excel uses a simple formula, you need an Excel document can be sent to the mail request. (This place can't upload files.) )

Ways to import Excel data into SQL tables

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.