Copy the Excel spreadsheet data directly into PL / SQL and import an Excel file into PL / SQL

Original: http: //blog.csdn.net/luoxingchen/article/details/23795371

1, copy the data directly to Excel table in PL / SQL.

 

Description: I did not notice before PL / SQL can also directly copy the Excel spreadsheet into a database, try really OK, so efficiency is still relatively high, not a one inserted. However, simply double-click the first table, or paste the selected row, although this can paste, but always to stagger back a solution is as follows:

 

First query a database table in PL / SQL, as select * from test (of course, can be added later for update,

In this case, in addition to the current user, other users can only query data can not be updated). Point unlock unlocked icon, so that you can modify the table. Of course, you can also right-click a need to modify a table, select "edit" or "Edit data".

Then select and copy needs to be added to the contents of the Excel spreadsheet database, and then move the mouse to the left of a new line, when the mouse is displayed when right-click the left button , then the grid should be selected first, second a grid is displayed in black (or other selected color blue). Then the mouse over the cell selected, right-click and choose "paste" paste can be.

 

 

2, PL / SQL to Excel documents into database

 

1, open odbc importer plsql Tools menu
 
2. Click connect button, select the Excel file you want to import.
  
3, in particular selected Excel Sheet
 
. 4, the user select the database and tables
 
5, select the fields corresponding to the data table and select the type and the corresponding correct.
 
6. Click the Import button.

发布了117 篇原创文章 · 获赞 4 · 访问量 8万+

Guess you like

Origin blog.csdn.net/qq_36266449/article/details/78328503