Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Excel data into Oracle table

Not Oracle, but the idea is the same.

This might be a help for getting data to and from Excel and Access: It
includes examples of using variables in SQL queries.
http://www.bygsoftware.com/examples/sql.html

Or you can get there from the "Excel with Access Databases" section on page:
http://www.bygsoftware.com/examples/examples.htm

It demonstrates how to use SQL in Excel's VBA to:

* create a database,
* create a table and add data to it,
* select data from a table,
* delete a table,
* delete a database.

You can also download the demonstration file called "excelsql.zip".

The code is open and commented.


--

Regards
Andy Wiggins
www.BygSoftware.com
Home of "Save and BackUp",
"The Excel Auditor" and "Byg Tools for VBA"


"EWill" wrote in message
. ..
Does anyone have specfic examples ?




"Tim" wrote in message

...
Erik,

I believe the only way you can upload data to an Oracle DB
is to loop through your rows. You will need Oracle client
installed on the PC you are uploading from. I would
recommend creating an ODBC connection to simply the
creation of the connection object (obviously the TNSblock
must be set). I would recommend using the Command object
and appending parameters to it rather than concatentating
values into a single string (unless your values are really
simple, no chance of an apostrophe or quotation marks in
the uploaded values).

-Tim

-----Original Message-----
I'm trying to insert data from Excel into Oracle.

I have a couple questions regarding this topic:

1) What is the syntax to insert multiple rows (Do I need

to loop through each row ?)

2) What is the syntax to insert multiple rows from

multiple columns.

Thanks for your assistance.
.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel data upload to Oracle Brent Excel Discussion (Misc queries) 0 March 8th 07 07:01 PM
Exporting Excel data to Oracle DB JBruxer Excel Discussion (Misc queries) 0 January 5th 06 07:40 PM
export data into Oracle table val_petrescu Excel Discussion (Misc queries) 0 May 20th 05 08:20 PM
Howto use excel cell value to lookup an oracle table Andre Excel Discussion (Misc queries) 0 April 5th 05 09:44 AM
Excel retrieves data from Oracle Patrick Molloy Excel Programming 1 August 29th 03 08:47 AM


All times are GMT +1. The time now is 12:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"