You can use SQL Developer to load data into a table. You can load data from an .xls file or a .csv file into the table.
In this example, you load data into the PURCHASE_ORDERS
table that you created in "Example: Creating a Table". For simplicity, this example loads only three rows.
To prepare for this example, you must create a text file named load.csv
on the file system of the database host computer or on the file system of your local computer. The contents of the file should be as follows:
1,Office Equipment,25-MAY-2012,1201,13-JUN-2012 2,Computer System,18-JUN-2012,1201,27-JUN-2012 3,Travel Expense,26-JUN-2012,1340,11-JUL-2012
Note:
This example assumes that the columns in the PURCHASE_ORDERS
table are the following: PO_NUMBER
, PO_DESCRIPTION
, PO_DATE
, PO_VENDOR
, and PO_DATE_RECEIVED
. If your PURCHASE_ORDERS
table does not have all these columns (or has additional columns), then modify the data in the text file accordingly.
To load data into the PURCHASE_ORDERS table:
See Also:
" About Tables"