I have a developer who wants to send all the data to be inserted into a table at one time rather than send individual...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
records. He will be using VB and the database is 8.1.7.x on NT4.0. Do you have any ideas/examples of how to do this? I've looked a little into using PL/SQL tables but that seems rather complex.
In order to do a bulk insert, one will have to temporarily store the data to be inserted until the time of the bulk insert. This can be done many ways, but typically the data is temporarily stored in a file somewhere. Then, when it is time to bulk insert the data, the file is read, the contents are inserted into the table, and then the file is cleared out. There are many ways to accomplish this. One can use PL/SQL and the UTL_FILE package to open the file and insert the data. You can write a Perl routine that uses DBI to interface with the database. If the file is a text file, then you can even use Oracle's SQL*Loader utility to load the data!
For More Information
- Dozens more answers to tough Oracle questions from Brian Peasland are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.