# Table transfer

**URL:** <https://forum.knime.com/t/table-transfer/77916>\
**Category:** KNIME Analytics Platform\
**Tags:** database, labs\
**Created:** [March 15, 2024, 9:22am UTC](https://forum.knime.com/t/table-transfer/77916 "2024-03-15T09:22:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![yusufINC](https://forum-cdn.knime.com/user_avatar/forum.knime.com/yusufinc/32/65499_2.png) [@yusufINC](https://forum.knime.com/u/yusufINC)\
**Post date:** [March 15, 2024, 9:22am UTC](https://forum.knime.com/t/table-transfer/77916/1 "2024-03-15T09:22:04Z")

</div>

I have two PostgreSQL databases, I want to transfer a table from the source database to the target database, but I don’t know what to do for this. I’m very new to Knime.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/4/5/45ad37ff96d265ec2475e9e5ba9cc8a192ec8820.png)

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [March 15, 2024, 9:32am UTC](https://forum.knime.com/t/table-transfer/77916/2 "2024-03-15T09:32:03Z")

</div>

@yusufINC welcome to the KNIME forum. You could check these examples with streaming:

> [@Copy data from mysql to postgresql](https://forum.knime.com/t/copy-data-from-mysql-to-postgresql/67024/2):
>
> @mgiammarco concerning the transfer you might want to think about streaming like in this example. Then depending on the database it might support UUIDs so you could create them in the DB, maybe after storing the table after transfer in a temporary table. Postgres seems to support uuids: [The Basics Of PostgreSQL UUID Data Type](https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-uuid/) Another option would be to create uuid in KNIME. You would have to see how to then insert them into the target DB

---

<div class="post-metadata">

**Author:** ![yusufINC](https://forum-cdn.knime.com/user_avatar/forum.knime.com/yusufinc/32/65499_2.png) [@yusufINC](https://forum.knime.com/u/yusufINC)\
**Post date:** [March 16, 2024, 7:33am UTC](https://forum.knime.com/t/table-transfer/77916/3 "2024-03-16T07:33:22Z")

</div>

Hey Hi, my goal is to have 2 different PostgreSQL databases, one is the source db and the other is the target db, now here I want to get the data from the source db using Knime and send it to the target db.  
I didn’t understand how to do this with the resources you gave and it didn’t meet my needs.

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [March 16, 2024, 6:41pm UTC](https://forum.knime.com/t/table-transfer/77916/4 "2024-03-16T18:41:15Z")

</div>

@yusufINC I would suggest that you take a look at this sample workflow.

> **[Transferring data between databases – tobias.koetter](https://hub.knime.com/tobias.koetter/spaces/Public/DB/DBStreamingDataTransfer~-5KieXSx3QsjF86g/current-state)**
>
> This workflow demonstrates how data can be transferred between two different databases using the KNIME Streaming Execution. When using the KNIME Streaming Exec…

Otherwise you might describe in more details what you want to do.

---

<div class="post-metadata">

**Author:** ![yusufINC](https://forum-cdn.knime.com/user_avatar/forum.knime.com/yusufinc/32/65499_2.png) [@yusufINC](https://forum.knime.com/u/yusufINC)\
**Post date:** [March 17, 2024, 12:42am UTC](https://forum.knime.com/t/table-transfer/77916/5 "2024-03-17T00:42:16Z")

</div>

Sir, first of all, I appreciate your help.  
I should not use the Streaming data node we gave above because if you explain my process . I have two databases, one is Source and the other is Target. My only purpose is to make an insert here, that’s it in short.

---

<div class="post-metadata">

**Author:** ![yusufINC](https://forum-cdn.knime.com/user_avatar/forum.knime.com/yusufinc/32/65499_2.png) [@yusufINC](https://forum.knime.com/u/yusufINC)\
**Post date:** [March 17, 2024, 12:44am UTC](https://forum.knime.com/t/table-transfer/77916/6 "2024-03-17T00:44:04Z")

</div>

So, actually, I will create the target db in PostgreSql and insert the data from the Source Db into it.

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [March 17, 2024, 7:33am UTC](https://forum.knime.com/t/table-transfer/77916/7 "2024-03-17T07:33:23Z")

</div>

@yusufINC if you do not want to use streaming you can download the data from one database to knime and then load it into the second DB with one of these nodes like in your screenshot. You might have to configure them.

> **[DB Insert](https://hub.knime.com/knime/extensions/org.knime.features.database/latest/org.knime.database.node.io.insert.DBInsertNodeFactory)**
>
> Inserts data rows into the selected database table based on the values from the selected KNIME input table columns. All selected column names need to exactly m…

> **[DB Insert](https://hub.knime.com/knime/extensions/org.knime.features.database/latest/org.knime.database.node.io.insert.DBInsertNodeFactory)**
>
> Inserts data rows into the selected database table based on the values from the selected KNIME input table columns. All selected column names need to exactly m…

> **[DB Loader](https://hub.knime.com/knime/extensions/org.knime.features.database/latest/org.knime.database.node.io.load.node.DBLoaderNodeFactory2)**
>
> This node uses database specific bulk loading functionality that only some databases (e.g. Hive, MySQL, PostgreSQL and H2) support to load large amounts of dat…

If you are looking for more examples about SQL databases and knime I can [offer this article](https://medium.com/low-code-for-advanced-data-science/knime-databases-and-sql-273e27c9702a).

---

<div class="post-metadata">

**Author:** ![yusufINC](https://forum-cdn.knime.com/user_avatar/forum.knime.com/yusufinc/32/65499_2.png) [@yusufINC](https://forum.knime.com/u/yusufINC)\
**Post date:** [March 18, 2024, 12:03am UTC](https://forum.knime.com/t/table-transfer/77916/8 "2024-03-18T00:03:40Z")

</div>

greetings sir,  
I used to use 1 different database, but now I reduced it to 1 and used another way to transfer the data, but I want to ask whether this method has the same logic as Insert into in PostgreSQL.  
My point here is  
Connect to PostgreSQL, then pull the table with Custom query, then transfer this table to another table with DB Connection Table Writer. This is the whole thing, but I don’t know if the operation I did and the insert operation are the same, can you explain this to me?

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/c/7cc371e37583482b0f6acec371fe6fd310119790.png)

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [March 18, 2024, 6:56pm UTC](https://forum.knime.com/t/table-transfer/77916/9 "2024-03-18T18:56:32Z")

</div>

@yusufINC if you already have the database in the same environment then you could use the DB Connection Table Writer to create or append your second database.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/1/c/1cb75a5b6cc8d29c5605c1e9052d1567c3410ea1.png)

> **[DB SQL - H2 Database, create database and additional tables – mlauber71](https://hub.knime.com/mlauber71/spaces/Examples/DB%20SQL%20-%20H2%20Database,%20create%20database%20and%20additional%20tables~tDEABK9OAPAPZ8_q/current-state)**
>
> DB SQL - H2 Database, create database and additional tables

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [March 25, 2024, 6:57pm UTC](https://forum.knime.com/t/table-transfer/77916/10 "2024-03-25T18:57:21Z")

</div>

Closed on March 25, 2024, 6:57pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
