Home » RDBMS Server » Server Utilities » Inserting data in multiple table
Inserting data in multiple table [message #128100] Fri, 15 July 2005 01:33 Go to next message
puneetsachar
Messages: 97
Registered: March 2005
Location: New Delhi, India
Member

Hi Group,
Hopw everyone doing fine.

How can we insert a data from datafile into multiple tables depending upon the number of rows in the datafile.

Let me explain you with small example,
suppose we have datafile (values are in fixed format) like

1,accounts,puneet sachar,sec1
2,abc,sec2
3,accounts,Jos,sec2,
4,Dave,sec4
5,computers,John,sec4

Depending upon number of columsn the data will go to table
incase in row 1 the value should go to departments table as it has departname (column 2)
while row 2, 4 shold go to emp table as they don't have department associated with them.

Please help!

Cheers
Puneet sachar


Re: Inserting data in multiple table [message #128150 is a reply to message #128100] Fri, 15 July 2005 06:56 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch10.htm#1007219
Previous Topic: New to SQLloader Need help
Next Topic: How to get log file from dump file?
Goto Forum:
  


Current Time: Thu Jul 04 05:28:15 CDT 2024