Home » SQL & PL/SQL » SQL & PL/SQL » How can bulk insert into the parent , child tables (Oracle Linux 6.7, Oracle 12.1.0.2.0)
How can bulk insert into the parent , child tables [message #670473] Sun, 08 July 2018 01:27 Go to previous message
fabi88
Messages: 112
Registered: November 2011
Senior Member
There is is a flat file (CV file) which has Countries,Provinces and Cities information, like:

Germany, Berlin, Potsdam 
Germany, Hamburg, Altona
Germany, Hamburg, Reinbek

there are three tables in the database for keeping countries, provinces and cities, like:
# Country Table
Country_ID , Country_Name

# Province Table
Province_ID ,Country_ID (F.K to Country Table), Province_Name

# City Table
City_ID,Province_ID(F.K to Province Table) City_Name

how can bulk insert into the tables using something like external table ,... or any other methods which can be used for bulk insert?
I mean that how can bulk insert into the parent , child tables?

Thanks for your favor in advance.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Report query
Next Topic: rownum from table
Goto Forum:
  


Current Time: Thu Apr 25 11:57:35 CDT 2024