Python Forum
Load data from One oracle Table to Multiple tables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load data from One oracle Table to Multiple tables
Hi Experts,
I am in process of learning Python. I am Oracle Developer. I have one source table with Multiple columns. There are several Target tables. I am interested on load data from Source file to Target tables ( need to do all the validations like compare the matched columns data if matched then UPDATE else need to INSERT the data into the table. Need to this validation for all the tables. And would like to automate this process.
Can you please advise is this possible in Python? If possible please advise the logic.

Quote:Can you please advise is this possible in Python? If possible please advise the logic.
Python is used for many SQL applications.
In fact, most of PgAdmin is written in python.
There are several methods that can be used, from straight SQL Queries (within python) to using SqlAlchemy
(see my tutorial here: )

SqlAlchemy, uses a model and in many instances the model can be shared between DBMS's by simply changing one line, that controls the engine.

Specific to Oracle, you can google 'using python with oracle'
and browse existing packages (that you can install, simply with pip command) here:

Possibly Related Threads…
Thread Author Replies Views Last Post
  Data extraction from a table based on column and row names tgottsc1 1 86 Jan-09-2021, 10:04 PM
Last Post: buran
  Fetching data from multiple tables in a single request. swaroop 0 74 Jan-09-2021, 04:23 PM
Last Post: swaroop
  How to fill parameter with data from multiple columns CSV file greenpine 1 97 Dec-21-2020, 06:50 PM
Last Post: Larz60+
  I try to import data from Excel table to Word Template. NewbiePyPy 0 230 Oct-21-2020, 12:25 PM
Last Post: NewbiePyPy
  How to use subprocess to get multiple data outputs in desired folder? 3SG14 1 385 Sep-19-2020, 05:46 PM
Last Post: bowlofred
  Fetch Oracle DB rows & print it in HTML file with table's col headers in table format tssr_2001 1 488 Sep-04-2020, 01:39 PM
Last Post: ibreeden
  data from multiple Entry widgets beevee 13 814 Aug-16-2020, 12:31 PM
Last Post: deanhystad
  Adding data to a table in SQLite3 djwilson0495 2 450 Aug-15-2020, 02:48 PM
Last Post: djwilson0495
  How to save CSV file data into the Azure Data Lake Storage Gen2 table? Mangesh121 0 388 Jun-26-2020, 11:59 AM
Last Post: Mangesh121
  Support required to data log in SQL server single table via raspbeery pi rithikvg 8 766 Jun-23-2020, 05:23 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020