Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql insert of mult records

Status
Not open for further replies.

drcab

Programmer
Nov 16, 2000
32
US
How would the syntax be for inserting multiple records into an Oracle db??
 
I have multiple records in a flat file that I want to push into an Oracle db. I know the insert command (but is there a way to insert multiple records? Here is an example of what we have for one but multiple records will not push.

insert into marine_personnel (
master_unit_list_number,
rank_id,
ssn,
im_marine_number,
last_name,
first_name,
middle_initial,
sex,
detached_master_unit_list_nbr,
capability_status_id,
service_code,
availability_status_id)
values ('27100','67','123456789','123456789','Shmo','Joe','R','M','14116','1','1','1');


Am I going to have to have an insert command for every record? Thank you for you time. Sorry for being so vague.
 
Look at SQL*Loader. This is the Oracle utility for bulk loading text files into tables in Oracle. All the data has to go into the same table, and the data must be precisiely formatted i.e there must be the same amount of columns presented on each row of the text file. Its like the Access Import utility, or SQL Server DTS Import.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top