How to insert rows in an Excel sheet into SQL Server 2005 or oracle ?
For example if I have 5000 rows in Excel sheet how can I insert these rows into a table in any database
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
And for Oracle (see JYelton’s answers for MySQL and MS-SQL), the command would be:
The CTL file will have details about the file you need to import. It is necessary that you have convert the excel file into CSV format.
Sample entries in Control file.
More details as ORAFAQ for SQL Loader . You can also use
UTL_FILE.Or, think of creating an external table with CSV file as data and manipulate details on them.
Sample
CREATEstatement below:Details here: Oracle documentation for External Tables.