Excel imports databases such as Mysql\oracle\sql server

Source: Internet
Author: User

Today the customer gave an Excel data, need and my local library data to do contrast, do not want to use the UE initialization, feel very troublesome, finally found a formula on the net slightly modified a bit to solve, memo as follows:

  1. Add a column to the column you want to insert in Excel, and then enter the following code (please replace A2 and B2 with your own cell name, separated by commas in the English state)

    =concatenate ("INSERT into B_code (N_code, C_name) VALUES ('", A2, "', '", B2, "');")

  2. Click on the lower right corner of the cell that you just added, and then click on the Cross and drag it down to the last record.

  3. Select the new column column, CTRL + C copy, then go back to the statement execution form, CTRL + V paste, and then execute!!!


As follows


Excel imports databases such as Mysql\oracle\sql server

Related Article

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.