The information on the right shows where that data is going, and how it will be treated. Step 5: Map the Excel Columns to the Table Columns The left panel represents the columns in the XLS file. You can also modify the column order, which may make the next step a bit easier. This is where you tell SQL Developer what columns are to be used for the import. You may have an Excel file with 100 columns but your table only has 30. Step 4: Select the Excel Columns to be Imported The wizard defaults to all of the Excel columns being used, in the order they’re found in the file. Working with CSV? You’ll get even more methods – great for VERY LARGE data sets. This is a nice alternative if you want to customize the SQL, or if you need to debug/see why the ‘Insert’ method isn’t working. If you choose ‘Insert Script’, the wizard will end with an INSERT Script in your SQL Worksheet. Each row processed in the Excel file will result in an INSERT statement executed on the table we’re importing to. Step 3: Create a script or import automatically As the wizard progresses, we’ll keep the File Contents preview panel handy so you don’t have to alt+tab back and forth from Excel to SQL Developer.įor this exercise the ‘Insert’ method will be used. Use the ‘Skip Rows’ option to get the right data. Sometimes your Excel file has multiple headers, or you may need to only import a certain subset of the spreadsheet. If you uncheck the ‘Header’ flag, the column names will become a new row in your table – and probably fail to be inserted. You can increase it, but that will take more resources, so don’t go crazy.Īlso, does your Excel file have column headers? Do we want to treat those as a row to the table? Probably not. This ‘Preview Row Limit’ defines how many rows you can use to verify the IMPORT as we step through the wizard. Step 2: Select your input (XLSX) file and verify the data If you’ve ran this wizard before, you can pick files from previous sessions.Īs you select the file, we’ll grab the first 100 rows for you to browse below.
0 Comments
Leave a Reply. |