How to import an Excel file to a database

Source: Internet
Author: User

How to import an Excel file to an Oracle database:

1. You can use select * from table name for update
Then unlock the lock and copy and paste the data in the Excel file.

Note that an empty column must be reserved before copying. Otherwise, a string column will be reserved.
Second, convert to TXT and use sqlload for warehouse receiving.
1. Save the Excel file as a TXT file, and select the Unicode text format (* .txtformat, named 11.txt ).
2 In this case, the data in the 11.txt file is separated by tabs. In this case, you need to replace the tab with a separator recognized by sqlload.
3. open the file 11.txt In the word' open-square format, and you will see the form of word.
4. Replace '^ t' with' | 'by using the search and replacement functions in word. In this way, the data in the TXT file is separated by' | ', and you can use sqlload to import data to the database.

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.