Interview Questions   Tutorials   Discussions   Programs   Videos   

WinRunner - How to Import(insert) data from an excel sheet to Database(table).

asked mar August 9, 2014 07:19 AM  

How to Import(insert) data from an excel sheet to Database(table).


1 Answers

answered By shyam   0  
Click Tools → Import → Import Wizard. This window can be used to import data from various kinds of source files into a table.
SQL*Loader You can use TOAD's interface to a program from Oracle called sql loader. Save the Excel file as a comma-delimited (.csv) or tab-delimited (.txt) file. If your data has commas within a text field, save your file as tab-delimited.
Open DBA→Sql Loader Wizard
Choose "build a new control file". Next.
Click "Add". Choose your comma-delimited or tab-delimited file. Next.
Click "Add". Choose your table.
If you are loading a comma-delimited file, type a comma in the "all fields delimited by" combo box. If you are loading a tab-delimited file, select "TAB" from the "all fields delimited by" combo box. Next.
Choose a "load method" noting the following:
  TRUNCATE will erase whatever is in the table before loading.
  INSERT will insert data if table is empty but will return an error if table has any data in it.
  APPEND will insert data without deleting any existing data. You might get duplicates this way but it's a good method if you're trying to get that last line that somehow got munged for some reason or another.
If your file has column headers in its first row, type a 1 in the skip box. Next.
Type a control file name in the control file name box. Next.
Choose either "execute now" to load the data now or "just build the control file" to build the .ctl file. Once you have the ctl file theoretically you don't even need TOAD, as you could just use sql loader on any machine that has sql loader and can connect to the database. But why would you want to. :)  I choose execute now.
   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!