I have two databases and two apps. Initially they had same data. Later on, it has changed. Now I want to import some data from one database to another, but getting constraint restrictions. I thought I will just delete with sql command first from one, but then I get constrain restrictions again with multiple other tables.
Tables that I want to move are like this Manufacturers has many Systems has many Products. So let's say Apple has Iphone10 and Iphone11 systems, and each of them has many parts. And they were used in other parts of application like orders.
Fields of the tables are not exactly the same.
So how could I delete data from those three tables in one database, and then import new data?
*The app is not in production